Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520024 - gnome-extra/cinnamon-screensaver-2.2.4 can't be used without gnome-extra/cinnamon
Summary: gnome-extra/cinnamon-screensaver-2.2.4 can't be used without gnome-extra/cinn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-15 23:44 UTC by Erik Jensen
Modified: 2015-01-20 11:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Jensen 2014-08-15 23:44:09 UTC
cinnamon-screensaver 2.2.4 has its settings spread across two different schemas: org.cinnamon.screensaver and org.cinnamon.desktop.screensaver. The former is provided by gnome-extra/cinnamon and the latter by gnome-extra/cinnamon-desktop. However, of the two, cinnamon-screensaver only depends on the latter, resulting an error when trying lock the screen.

Reproducible: Always

Steps to Reproduce:
1. Install cinnamon-screensaver without installing the rest of Cinnamon
2. Start cinnamon-screensaver in a terminal
3. Run cinnamon-screensaver-command --lock to try to lock the screen
Actual Results:  
cinnamon-screensaver outputs the following error:
(cinnamon-screensaver:13533): GLib-GIO-ERROR **: Settings schema 'org.cinnamon.screensaver' is not installed

The process is then terminated by SIGTRAP

Expected Results:  
The screen is successfully locked.

Upstream recently removed the dependency on cinnamon by moving all screensaver settings to cinnamon-desktop. See these commits:
https://github.com/linuxmint/cinnamon-desktop/commit/b8b7c7cd82384f6d8230b55b754e5798fa051084
https://github.com/linuxmint/Cinnamon/commit/ab39df9c85270002b23e5fea8ede78c3e8c3310c
https://github.com/linuxmint/cinnamon-screensaver/commit/f812dc464284957f7e0f6072d9e4a98c07d47d93

It would be nice to have those patches applied so the cinnamon lock screen can be used without having the full Cinnamon environment installed. Otherwise, gnome-extra/cinnamon-screensaver should depend on gnome-extra/cinnamon.
Comment 1 Sebastian Pipping gentoo-dev 2015-01-11 19:27:49 UTC
I ran into the same error, too.

After a bit of looking around I can confirm is that:

 * gnome-extra/cinnamon-screensaver-2.2.4 asks for
   "org.cinnamon.screensaver" in the code

 * gnome-extra/cinnamon-desktop-2.2.3 provides
   "org.cinnamon.desktop.screensaver" with ".desktop" added

 * gnome-extra/cinnamon-2.2.16-r2 provides
   "org.cinnamon.screensaver" through org.cinnamon.gschema.xml

For a workaround, I can recommend installing

 * gnome-extra/cinnamon-desktop-2.4.2
 * gnome-extra/cinnamon-screensaver-2.4.0

together.  That combination of versions seems to work, since both use and provide "org.cinnamon.desktop.screensaver".

For another combinations of versions that does /not/ work, I just opened bug #536350.
Comment 2 Sebastian Pipping gentoo-dev 2015-01-11 19:29:58 UTC
PS: I would rather see a patch asking for "org.cinnamon.desktop.screensaver" than adding a dependency on gnome-extra/cinnamon.
Comment 3 Pacho Ramos gentoo-dev 2015-01-13 16:48:17 UTC
I would add the RDEPEND on 2.2.x and rely on future 2.4.x stabilization (that seems to fix this) for dropping the requirement :/
Comment 4 Pacho Ramos gentoo-dev 2015-01-20 11:52:57 UTC
+  20 Jan 2015; Pacho Ramos <pacho@gentoo.org> cinnamon-screensaver-2.2.4.ebuild:
+  2.2 needs cinnamon to provide needed schemas, in 2.4.x cycle this is no longer
+  needed (#520024 by Erik Jensen and Sebastian Pipping)
+