Why is /usr/share/gnome-shell/js missing?

7

4

I'm trying to debug a gnome-shell extension, but I don't seem the have the folder /usr/share/gnome-shell/js. I'm on fedora 20 with gnome 3.12. I couldn't find it when I had gnome 3.10 either. Were the files moved? Is there a package that I'm missing?

topcat

Posted 2014-04-05T21:11:23.947

Reputation: 205

Answers

10

The js files are now embedded inside libgnome-shell.so.

gresource list /usr/lib/gnome-shell/libgnome-shell.so

You can create a simple script to extract the resources:

#! /bin/sh

gs=/usr/lib/gnome-shell/libgnome-shell.so

cd $HOME/gnome-shell-js

mkdir -p ui/components ui/status misc perf extensionPrefs gdm

for r in `gresource list $gs`; do
  gresource extract $gs $r > ${r/#\/org\/gnome\/shell/.}
done

And then use:

GNOME_SHELL_JS=$HOME/gnome-shell-js gnome-shell --replace

To check the changes.

Be careful, when you exit the replacement shell, the previous one becomes unresponsive.

This was taken from Gnome blog post.

jtheoof

Posted 2014-04-05T21:11:23.947

Reputation: 288

On a 64-bit system, my path to gnome-shell was /usr/lib64/gnome-shell/libgnome-shell.so

Also, I needed to add portalHelper to the list of directories to add via mkdir. – Haydentech – 2018-07-17T20:29:56.980