You are not logged in.

#1 2013-03-29 14:39:54

Multimoon
Member
From: /usr/share/zoneinfo/US/Eastern
Registered: 2012-09-30
Posts: 170

[Gnome3] Extension Load Order

Good morning, depending on what corner of the planet you live on. I'm messing around with Gnome3 trying to get used to it for various reasons. After spending hours playing with extensions, I got a feel I could enjoy. My only problem is that the Gnome Shell's order that it loads my extensions in is destructive to the other extensions. For example, I have a extension that removes the username/social info from the system menu, and another that moves it's location. The location extension loads first, does its job, and moves, but when the other one loads, it assumably modifies and restarts the service, and then it's location is reverted. This happens with about 4-5 extensions, and is fixed by reloading three of them in Gnome-Tweak-Tool.

After all this rambling, is there a possible way to make a predefined order in which to load extensions? I did some google searching, but the closest thing that I could find was a forum post on the Mint forums about it, but it got distracted with various other people asking questions on the same post, over creating a new one(I hate it when I see people do that) and never got a answer. Also, a command line way to reload a specified extension would work too, then I could just create a autorun script to reload specified extensions.

Last edited by Multimoon (2013-03-29 14:41:36)


It always makes me laugh when people complain and rage over any distro's management ideal, when this is a linux community, and you could always make your own distro and experience the pains yourself.

Offline

#2 2013-03-29 22:53:54

don_crissti
Member
Registered: 2009-03-17
Posts: 35

Re: [Gnome3] Extension Load Order

The order in which the extensions are loaded is a bit cryptic, see /usr/share/gnome-shell/js/ui/extensionSystem.js. I don't think there's a trivial way to load extensions in a predefined order so reloading an extension in CLI might do the trick. You can do that via gdbus, calling ReloadExtension method on org.gnome.Shell.Extensions interface:

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Extensions.ReloadExtension UUID

where UUID is the extension UUID (defined in ~/.local/share/gnome-shell/extensions/extension-dir/metadata.json, should be the same as extension-dir name) enclosed in double-quotes, e.g.:

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Extensions.ReloadExtension "temperature@xtranophilist"

Offline

Board footer

Powered by FluxBB