Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566340 - x11-misc/light-locker-1.6.0 needs compiled gschemas.xml in /usr/share/glib-2.0/ after installation
Summary: x11-misc/light-locker-1.6.0 needs compiled gschemas.xml in /usr/share/glib-2....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Denis Dupeyron (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-20 15:31 UTC by Gleb
Modified: 2016-02-02 18:49 UTC (History)
0 users

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


Attachments
Fixed ebuild that invokes neccesary commands. (light-locker-1.6.0-r1.ebuild,1.44 KB, text/plain)
2015-11-20 15:33 UTC, Gleb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gleb 2015-11-20 15:31:45 UTC
Light-locker package provides gschema.xml file in /usr/share/glib-2.0/apps.light-locker.gschema.xml. When new gschema.xml added to this directory, glib-compile-schemas should be invoked to update cache.

Why is this matter? Xfce Power Manager handles Light-locker settings. If those settings is not available through gschema interface (I think it's dconf/gsettings related things), then it won't provide Security tab for control those options.

This tour of Xfce 4.12 contains screenshot and description of Security tab for Power Manager: http://www.xfce.org/about/tour

Reproducible: Always

Steps to Reproduce:
1. Install xfce4-power manager (as a part of Xfce)
2. Install light-locker
3. Open Xfce4-power-manager and see that there's no Security tab.

Another way is to run in terminal light-locker command to see that apps.light-locker schema isn't found so it won't store settings in runtime.
Actual Results:  
No xfce4-power-manager Security tab;
Light-locker don't store serttings in gschema interface (dconf/gsettings related things).

Expected Results:  
After installation of light-locker (beacuse it's optional) gschema.xml files should be updated (recompiled) and xfce4-power-manager should handle settings and show Security tab.

gnome2-utils.eclass contains necessary commands to update gschemas.
4 commands should be invoked after installation and after removing the package.

To fix this bug, ebuild should be modified to run gnome2_schemas_savelist and gnome2_schemas_update. Appropriate inherit options also should be added. Here's how it looks (I post only diff):

ingerit autotools-utils eutils gnome.org gnome2-utils

pkg_preinst() {
	gnome2_schemas_savelist
	}

pkg_postinst() {
	gnome2_schemas_update
}

pkg_prerm() {
	gnome2_schemas_savelist
}

pkg_postrm() {
	gnome2_schemas_update
}

P.S. I notified maintainer via email and he advised me to file a bug. I found a solution which fix this issue. I'm sorry for my bad English and for such rough description because I'm not a developer and it's hard to properly name all those things.
Comment 1 Gleb 2015-11-20 15:33:48 UTC
Created attachment 417468 [details]
Fixed ebuild that invokes neccesary commands.

Original ebuild with added commands to udpate gschema.xml after installation of light-locker.
Comment 2 Denis Dupeyron (RETIRED) gentoo-dev 2016-02-02 18:49:09 UTC
I have fixed this today along with a bump to version 1.7.0. I used a different ebuild from what you sent but your hints were very valuable.

Sorry for the time it took to get it done.

Thanks,
Denis.