Question

Answer to a similar question suggests that I cannot import Shell stuff in a standalone mode. However, as I understand it, St is a separate library written in C. Yet I still cannot import it in gjs...

I.e.

$ gjs -c "imports.gi.Gtk"

works (i.e. no output). But

$ gjs -c "imports.gi.St"

fails with

Error: Requiring St, version none: Typelib file for namespace 'St' (any version) not found

Is there any way to import St library from a standalone (not GNOME Shell extension) gjs?

Was it helpful?

Solution

Some of them are not there (e.g. Meta, Shell, St) because they are considered "private". Read more here on how to import them: http://mathematicalcoffee.blogspot.ca/2012/09/developing-gnome-shell-extensions_6.html?m=1

St Lib would really (!!!) help in writing apps with custom interfaces due to the use of CSS. If we could use the library with Clutter and gjs it would really attract developers due the easy of use of St and Shell libraries.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top