Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gsettings issues #22

Open
c0d3sling3r opened this issue Nov 22, 2016 · 7 comments
Open

Gsettings issues #22

c0d3sling3r opened this issue Nov 22, 2016 · 7 comments

Comments

@c0d3sling3r
Copy link

c0d3sling3r commented Nov 22, 2016

Hi. I'd installed this extension by Gnome Tweak Tool. After a broken installation I saw something went wrong and I checked the error. I faced with this:


GLib.FileError: Failed to open file '/home/mojtaba/.local/share/gnome-shell/extensions/[email protected]/schemas/gschemas.compiled': open() failed: No such file or directory

Stack trace:
  getSettings@/home/mojtaba/.local/share/gnome-shell/extensions/[email protected]/convenience.js:82
  SystemMonitorPrefsWidget<._init@/home/mojtaba/.local/share/gnome-shell/extensions/[email protected]/prefs.js:195
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178
  buildPrefsWidget@/home/mojtaba/.local/share/gnome-shell/extensions/[email protected]/prefs.js:258
  Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:95
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178
  Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:259
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178
  main@resource:///org/gnome/shell/extensionPrefs/main.js:397
  @:1

First line clears that one file names gschemas.compiled has not created. So what should I do now?

@elvetemedve
Copy link
Owner

Hi,
Tweak Tool needs a Zip file to install the extension. Where did you get that?

@macariocarneiro
Copy link

I got the same error on Ubuntu GNOME 16.04.1. Following the install instructions, getting the dependencies, installing with Tweak Tool, restarting several times, none of this work. So I compiled the gschemas.compiled myself and it worked fine.

You will need to use glib-compile-schemas on the schemas directory of the extension
$ glib-compile-schemas ~/.local/share/gnome-shell/extensions/[email protected]/schemas/

Now restart the GNOME session with Alt+F2 and 'r'

@elvetemedve
Copy link
Owner

That's why I asked where did you get the Zip file. If you simply download it from Github by clicking on the green Clone or download button, that's not the Zip file you need.
The correct Zip file is produced by the rake build command and it's available from the build directory. That command also takes care of creating the gschemas.compiled file.

@macariocarneiro
Copy link

I got it from extensions.gnome.org and it didn't work. So I downloaded the latest version from the releases here.

To install this extension we need to build it every update? Because just downloading the release, copying the files and compiling gschemas.compiled seems to work. Just asking, I'm not a programmer.

@elvetemedve
Copy link
Owner

@macariocarneiro I didn't know that it's possible to download from there directly. Where is the link to download? I still can't find it.

Of course you don't need to do this, gschemas.compiled file should be included in the Zip.

@macariocarneiro
Copy link

@elvetemedve https://extensions.gnome.org/extension/1064/system-monitor/ there is a button that autoinstall on the page, works with most extensions.

I'm confused, where should I get the proper installation file? Because the files on the release channel of this repo don't have gschemas.compiled

@elvetemedve
Copy link
Owner

The On/Off switch is there and it downloads the zip in the background, but you should not know that, because Gnome Shell has to take care of extracting the zip into the proper location.

After switching the button to On, there will be a <some-random-character>.shell-extension.zip file in /tmp directory. If you look into that, you will see the schemas/gschemas.compiled file is there.
Try to open https://extensions.gnome.org/extension/1064/system-monitor/ with Firefox and turn the switch on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants