GNOME Bugzilla – Bug 727948
gnome-shell-extension-prefs do not show preferences
Last modified: 2014-04-15 21:35:58 UTC
ura@workhost ~ $ export LANG=c jura@workhost ~ $ gnome-shell-extension-prefs (gnome-shell-extension-prefs:31047): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. ** (gnome-shell-extension-prefs:31047): WARNING **: Failed to load shared library 'libgnome-shell-js.so' referenced by the typelib: libgnome-shell-js.so: cannot open shared object file: No such file or directory (gnome-shell-extension-prefs:31047): Gjs-WARNING **: JS ERROR: TypeError: exc.stack is undefined Application<._buildErrorUI@resource:///org/gnome/shell/extensionPrefs/main.js:137 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:104 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<._extensionSelected@resource:///org/gnome/shell/extensionPrefs/main.js:121 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 main@resource:///org/gnome/shell/extensionPrefs/main.js:278 @<main>:1 (gnome-shell-extension-prefs:31047): Gjs-WARNING **: JS ERROR: TypeError: exc.stack is undefined Application<._buildErrorUI@resource:///org/gnome/shell/extensionPrefs/main.js:137 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:104 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<._extensionSelected@resource:///org/gnome/shell/extensionPrefs/main.js:121 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 main@resource:///org/gnome/shell/extensionPrefs/main.js:278 @<main>:1 (gnome-shell-extension-prefs:31047): Gjs-WARNING **: JS ERROR: TypeError: exc.stack is undefined Application<._buildErrorUI@resource:///org/gnome/shell/extensionPrefs/main.js:137 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:104 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<._extensionSelected@resource:///org/gnome/shell/extensionPrefs/main.js:121 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 main@resource:///org/gnome/shell/extensionPrefs/main.js:278 @<main>:1 jura@workhost ~ $ ls /usr/lib64/gnome-shell/libgnome-shell-js.so /usr/lib64/gnome-shell/libgnome-shell-js.so
I'm unable to reproduce this on either Fedora rawhide (3.12.0) or master - what distribution are you using?
I'm use gentoo. Do you have a link in /usr/lib/ to the librery /usr/lib64/gnome-shell/libgnome-shell-js.so ? After export LD_LIBRARY_PATH=/usr/lib64/gnome-shell/ this error can not reproduce for me.
(In reply to comment #2) > I'm use gentoo. Why am I not surprised? ;-) > Do you have a link in /usr/lib/ to the librery > /usr/lib64/gnome-shell/libgnome-shell-js.so ? No. The binary is expected to be linked against libgnome-shell-js[0] - do you happen to have --as-needed in your linker flags? [0] https://git.gnome.org/browse/gnome-shell/tree/src/Makefile.am#n200
Thanks! ;) I recompie gnome-shell with --no-as-needed and bug disappear.
Created attachment 274001 [details] [review] extension-prefs: Force linking with libgnome-shell-js Use the same hack we use for the main executable to fool the linker when using --as-needed.
Could you please confirm that the attached patch fixes the issue even when linking with --as-needed?
Yes, this patch work ;)
Attachment 274001 [details] pushed as b4a48a7 - extension-prefs: Force linking with libgnome-shell-js