glib-compile-schemas doesn't compile relocatable schemas

Bug #1281580 reported by Attila Hammer on 2014-02-18
54
This bug affects 9 people
Affects Status Importance Assigned to Milestone
GLib
Confirmed
Medium
glib2.0 (Ubuntu)
Undecided
Unassigned

Bug Description

Dear Developers,

I am using the Ubuntu 14.04 development release with the GNOME Shell 3.10 and, because my wife is using this system as well, I defined some settings in a gschema.override file.
Everything is working right, except applying settings related to custom key-bindings.

I added following lines my gschema.override file:
[org.gnome.settings-daemon.plugins.media-keys]
www='<Super><Alt>w'
email='<Super>e'
custom-keybindings = ['/org/gnome/settings-daemon/plugins/media-keys/custom-keybinding/custom0']

[org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/]
name = 'Launch Gedit'
command = 'gedit'
binding = '<Super>g'

I put my gschema.override file in the '/usr/share/glib-2.0/schemas' directory. After I added these lines, I ran 'glib-compile-schemas /usr/share/glib2.0/schemas' and no error was reported.
For testing purposes I created a new user, logged out, and logged in with the new user. In the best case, the custom key-binding were applied automatically, but this has not happened. Other defined key-bindings were applied correctly.
In the gnome-control-center's key-bindings tab, the table containing custom shortcuts is empty, containing one row with empty columns.

Running 'gsettings list-recursively org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/' shows, the name, command, and binding key pairs contain empty ('') values.

If I manually run following commands, the custom key-binding is created correctly:
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name "Launch Gedit"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command "gedit"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding "<Super>g"

Am I doing anything wrong when I want to add a custom key-bindings in my schema file, or is 'glib-compile-schemas' really not applying this part from the schema file?

Attila

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libglib2.0-bin 2.39.4-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-8.28-generic 3.13.2
Uname: Linux 3.13.0-8-generic i686
ApportVersion: 2.13.2-0ubuntu4
Architecture: i386
CurrentDesktop: GNOME
Date: Tue Feb 18 13:58:37 2014
InstallationDate: Installed on 2013-12-13 (67 days ago)
InstallationMedia: BeLin 3.02 i386
SourcePackage: glib2.0
UpgradeStatus: No upgrade log present (probably fresh install)

Attila Hammer (hammera) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glib2.0 (Ubuntu):
status: New → Confirmed
starbroken (starbroken) on 2014-11-13
summary: - Glib-compile-schemas utility possible doesn't compibiling right
- relocatable schemas
+ glib-compile-schemas doesn't compile relocatable schemas
starbroken (starbroken) wrote :

I have the same problem.

All entries in my gschema.override file, that affect relocatable schemas, are ignored.
All other entries are applied.

description: updated
Michael Zaugg (AOI) (it-oas) wrote :

Here is an explantion how to do it in dconf: http://blog.chapus.net/more-gnome-unity-system-defaults/

Changed in glib:
importance: Unknown → Medium
status: Unknown → Confirmed
ksamak (ksamak) wrote :

Hi,
We at hypra make accessibility features, and a configuration package suite, mate-accessibility.
This bug is seriously jeopardising any attempt at a clean default set of relocatable schemas, and forces us to configure each impaired user machine by hand, or remotely.
We use compiz, and are currently engaged in re-introducing it in debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816652).
We aim at introducing the mate-accessibility packages in debian, and flow it into ubuntu as soon as possible. For now, this option is unfortunately closed to us.
https://git.hypra.fr/hypra/mate-accessibility

please consider fixing this. thank you for reading

PJSingh5000 (pjsingh5000) wrote :

Experiencing this issue on Ubuntu 16.04 x64.

To recreate...

Execute:
$ gsettings get org.compiz.expo:/org/compiz/profiles/unity/plugins/expo/ vp-saturation

Note the value is 40.0.

Create a file called /usr/share/glib-2.0/schemas/11_test.gschema.override with the following content:
    [org.compiz.expo:/org/compiz/profiles/unity/plugins/expo]
    vp-saturation = '10.0'

Note that a relocatable schema was specified in the above file.

Execute:
$ glib-compile-schemas /usr/share/glib-2.0/schemas/

Execute:
$ gsettings get org.compiz.expo:/org/compiz/profiles/unity/plugins/expo/ vp-saturation

Note that the vp-saturation value is still 40, and has not been updated.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.