Re: Accessing an extension's namespace in the looking glass



Il sab, feb 23, 2013 at 2:51 ,Jason Heeris <jason heeris gmail com> ha scritto:
In Gnome Shell 3.6, is there a way to access the namespace and imports
of an extension from the looking glass? For example, to be able to
manually call a function defined in an extension? Or say in an
extension you have this line:

const Convenience =
ExtensionUtils.getCurrentExtension().imports.convenience;

How would I access the functions in "Convenience" from the looking glass?

Your extension object (that returned by getCurrentExtension()) is at imports.misc.extensionUtils.extensions[uuid].

Giovanni


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