elvetemedve / gnome-shell-extension-system-monitor

Gnome Shell extension for displaying resource usage
GNU General Public License v3.0
87 stars 15 forks source link

Gsettings issues #22

Open c0d3sling3r opened 7 years ago

c0d3sling3r commented 7 years ago

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/System_Monitor@bghome.gmail.com/schemas/gschemas.compiled': open() failed: No such file or directory

Stack trace:
  getSettings@/home/mojtaba/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/convenience.js:82
  SystemMonitorPrefsWidget<._init@/home/mojtaba/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/prefs.js:195
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178
  buildPrefsWidget@/home/mojtaba/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/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 commented 7 years ago

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

macariocarneiro commented 7 years ago

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/System_Monitor@bghome.gmail.com/schemas/

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

elvetemedve commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

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.