-
Notifications
You must be signed in to change notification settings - Fork 275
crashes gnome-shell when installed into ~/.local #95
Comments
(Duplicated from my comments in #80:) |
@ferdnyc Can you be more specific? Using my prefix the schemas get installed into the .local sub directory. What exactly is it that could be failing here? Gsettings not picking them up? |
@aldafu: Exactly, there's no .local equivalent to the GSettings schema dir. (In fact, you'll notice there's no That's a big part of the reason that extensions with custom GSettings weren't supported in GNOME 3.0 and 3.2, and why there needs to be migration work done on our end to make the extension completely ready for extensions.gnome.org even under GNOME 3.4. That custom schema "breaks all the rules" for user-space .local extensions. However, GSettings by default will look in two locations for its schemas:
So, if you compile and install with |
Also, I apologize, I'd made at typo in my first comment, saying that the extension was installed under |
All kinds of other software is using $HOME/.local/share, I wonder why gsettings isn't then. Polluting my $HOME by using $HOME/share is not what I had in mind. Anyway, that's not the fault of the weather extension. ;) Can the extension be fixed to not crash if the schemas are missing (and thereby losing its settings, I guess)? With Gnome 3.0 and 3.2 I also had it installed in .local and it always worked fine for me, so that's where I'd like to keep it. |
I've did some research and found http://git.gnome.org/browse/gnome-shell-extensions/tree/lib/convenience.js. The getSettings function in there tries to find the schema in a directory that is parent to the extension dir. It seems to me that this is the best solution to finding the schema and it would fix this issue. Besides copying that function it's also needed to update the Makefile to install the schema in the extension dir. |
Indeed, the general idea with 3.4 is the schemas (and locale) files are self-included within the extension directory. If using the convience script then it will load the schema from |
Using the gnome3.4 branch of this extension with Fedora 17 and installing this extension into $HOME/.local will crash gnome-shell, logout the user and disable all extensions.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: