Re: Path errors running gjs-console



On Wed, Jan 11, 2012 at 9:25 PM, Chris Rotella <crotella gmail com> wrote:
I'm not able to import modules under js/ui because gjs is not able to
find other modules.

What's missing is the gobject introspection typelib for (lib)mutter (and at a later point probably those for libgnome-shell and libst as well). You can append their locations to GI_TYPELIB_PATH (on my system: /usr/lib64/mutter and /usr/lib64/gnome-shell). But note that those libraries/typelibs are private to gnome-shell for a reason - whatever it is you are trying to achieve, a lot (if not most) of the shell code assumes that it will run in the window manager, i.e. it will not run at all in gjs-console.

If you are developing a gnome-shell extension, you want to use looking glass[0] rather than gjs-console (also in that case you are more likely to get useful answers on gnome-shell-list); otherwise, you should probably not use shell code (even though some parts can be made to work from applications, the separation of chrome UI from application UI exists for a reason).

I'm aware that this is not the answer you were looking for, sorry for that :)


Regards,
Florian

[0] https://live.gnome.org/GnomeShell/LookingGlass


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]