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

[email protected] - schema not found #1755

Closed
vlatkoB opened this issue Apr 8, 2018 · 5 comments
Closed

[email protected] - schema not found #1755

vlatkoB opened this issue Apr 8, 2018 · 5 comments

Comments

@vlatkoB
Copy link

vlatkoB commented Apr 8, 2018

 * Applet version/Build date (to be found in "About.." or in "metadata.json")
0.2
 * Cinnamon version (cinnamon --version)
3.6.7
 * Distribution - (Mint 17.2, Arch, Fedora 25, etc...)
Arch
 * Graphics hardware *and* driver used
 * Snippet or attachment of ~/.cinnamon/glass.log
error t=2018-04-08T14:14:00Z Schema "org.cinnamon.hamster-applet" not found.
error t=2018-04-08T14:14:00Z [Applet "[email protected]"]: Failed to evaluate 'main' function on applet: [email protected]/28
error t=2018-04-08T14:14:00Z Could not load applet [email protected]
 * Snippet or attachment of ~/.xsession-errors
hamster not mentioned in .xsession-errors

Issue
Hamster applet unable to start (or just show icon) due to missing schema. Files org.cinnamon.hamster-applet.gschema.xml and gschemas.compiled present in ~/.local/share/cinnamon/applets/[email protected]/schemas directory.
On restarting cinnamon, two hamster processes are started: hamster-service and hamster-window-service, so it seems just the icon display is not working.

Steps to reproduce
Install applet via + Add applets to panel

Expected behaviour

Other information

@vlatkoB
Copy link
Author

vlatkoB commented Apr 8, 2018

I tried to use the old code from bcd6d7e in convenience.js and entered fixed path value to ~/.local/share/cinnamon/applets/[email protected]/schemas and I'm getting
error t=2018-04-08T20:45:47Z Failed to open file “~/.local/share/cinnamon/applets/[email protected]/schemas/gschemas.compiled”: open() failed: No such file or directory
but when I copy that path to ll in shell, seems the path is correct and file exists.
-rw-r--r-- 1 vlatko users 356 Apr 8 13:58 '/home/vlatko/.local/share/cinnamon/applets/[email protected]/schemas/gschemas.compiled

However, if I put the absolute path /home/vlatko/.local/share/cinnamon/applets/[email protected]/schemas, the error changes to

error t=2018-04-08T20:53:32Z GSettings schema not found: [boxed instance proxy GIName:Gio.SettingsSchema jsobj@0x7febc6c9e250 native@0x5622fa1b90f0]

@vlatkoB
Copy link
Author

vlatkoB commented Apr 8, 2018

Tried solution to identical issue form old original repo at projecthamster/cinnamon-applet#18, but the error now is

error t=2018-04-08T22:27:52Z redeclaration of formal parameter schema
error t=2018-04-08T22:27:52Z [Applet "[email protected]"]: Error importing applet.js from [email protected]

@Odyseus
Copy link
Contributor

Odyseus commented Apr 8, 2018

Hello, @vlatkoB.

There are several problems clashing in here. Follow the bellow steps to make the applet work.

  1. Completely remove the applet and re-install it from Cinnamon's applets manager (do not edit anything from the applet's code).
  2. Install the settings schema with the following command (It will ask for password): pkexec cinnamon-schema-install /full/path/to/schemas/org.cinnamon.hamster-applet.gschema.xml
  3. And lastly, set execution permissions to the prefs.js file (located inside the xlet folder).
  4. Now place it in any panel and it should work immediately.

Edit: I forgot to mention that I did these tests on Ubuntu 18.04 Beta2 and Linux Mint 18.3 and both systems with Cinnamon version 3.6.7. I didn't test on Archlinux. I also tested with the hamster-applet package installed and all seems to work fine.

Problems with xlets installation process

@collinss (?)

  1. Schema files found inside sub-folders are ignored (not installed when an xlet is installed).
  2. Xlet's file permissions aren't retained. If I download the applet mentioned in this issue from its Spices page and extract it, the prefs.js file has execution permissions. But the downloaded (and ultimately installed) package from the applets manager has all permissions changed.

@vlatkoB
Copy link
Author

vlatkoB commented Apr 9, 2018

Hi @Odyseus,
thanks, that solved the problem. :-)

A note for Arch users.
cinnamon-schema-install (and cinnamon-schema-remove) are not installed with cinnamon package, so to use this method, you must create that file(s) in /user/bin directory manually. Script code for both can be found at https://github.com/linuxmint/Cinnamon/tree/master/files/usr/bin.

EDIT: Disregard note for Arch users. cinnamon-schema-install (and remove) were removed from cinnamon stable release, and moved to /usr/share/cinnamon/cinnamon-settings/bin/installSchema.py.

@vlatkoB vlatkoB closed this as completed Apr 9, 2018
@NikoKrause
Copy link
Member

NikoKrause commented Apr 9, 2018

I moved the gschema.xml file to the parent directory, so Cinnamon installs it properly.
The missing permission has to be investigated.

Thanks @Odyseus

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