After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725292 - glib-compile-schemas possibly doesn't compile correct relocatable schemas
glib-compile-schemas possibly doesn't compile correct relocatable schemas
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gio
2.39.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-02-27 07:09 UTC by Hammer Attila
Modified: 2018-05-24 16:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hammer Attila 2014-02-27 07:09:53 UTC
Dear Developers,

I using Ubuntu 14.04 development release with GNOME Shell 3.10, and because my wife using too this system,  I defined with some settings in a gschema.override file.
Everithing is working right, except custom keybindings related settings applying.
I added following lines my gsettings.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'

My gsettings.override file I putted the /usr/share/glib-2.0/schemas directory. After I added this lines, I ran glib-compile-schemas /usr/share/glib2.0/schemas command, not presented any error messages.
Testing purpose I created a new user, logout, and login the new created username. Optimal case the custom keybinding need applying automaticaly, but this is not happened, other defined keybindings applied right.
In gnome-control-center keyboard preference pane, keybindings tab the custom shortcuts containing table is empty, containing one row with empty columns.

If I ran gsettings list-recursively org.gnome.settings-daemon.plugins
.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-
keys/custom-keybindings/custom0/ command, the name, command and binding
key pairs get empty '' values.

If I manual ran following commands, the custom keybinding is created right:
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"

I doing anything wrong when I want adding the custom keybindings related
part my schema file, or glib-compile-schemas utility realy not applying
this part from the schema file?

Attila
Comment 1 Allison Karlitskaya (desrt) 2014-02-27 13:40:40 UTC
hi Attila,

This is not a bug for two reasons:

The first is that it's not possible to override relocatable schemas on a per-location basis.  The default value is in the schema itself, regardless of the path that it is applied to.

The second reason is that gsettings schema overrides are only meant to be used by operating system vendors.  As a user, you should never modify any part of /usr on your system.  In future OS releases, /usr is likely to be a read-only image that the user cannot modify.

If you want to setup some default values for the entire system, the correct approach is to use dconf.  Take a look at this:

  https://wiki.gnome.org/Projects/dconf/SystemAdministrators

as an example of how to set some default settings.


I'm leaving this bug open because we should fix this by having the schema compiler reject keyfile groups that do not look like valid schema names, giving a helpful error message.
Comment 2 Hammer Attila 2014-02-27 15:52:03 UTC
Hi Ryan,

Thank you the information, I short readed the Wiki page and understand with you wrote.
For example, if I want defining systemvide level custom keybindings without all users need creating manual this preferences, possible doing this?
Example:
Launch Gedit application: Super+G
Launch Libreoffice Writer: Super+R
Launch Libreoffice Calc: Super+C
Launch Videos: Super+V

Now I use following settings my override file with A11y purpose (my wife partialy seeing the screen, I using Ubuntu 14.04 with screen reader):
[org.gnome.desktop.interface]
toolkit-accessibility=true

[org.gnome.shell]
always-show-log-out=true
favorite-apps=[ 'gedit.desktop', 'firefox.desktop', 'rhythmbox.desktop', 'simple-scan.desktop', 'shotwell.desktop', 'libreoffice-writer.desktop', 'libreoffice-calc.desktop', 'nautilus.desktop', 'yelp.desktop', 'orca.desktop', 'orca-teacher.desktop', 'thunderbird.desktop', 'totem.desktop' ]

[org.gnome.nautilus.desktop]
home-icon-visible=true
home-icon-name='Saját mappa'
network-icon-visible=true
network-icon-name='Hálózati kiszolgálók'
trash-icon-visible=true
trash-icon-name='Kuka'
volumes-visible=true

[org.gnome.desktop.a11y.applications]
screen-reader-enabled=true
screen-magnifier-enabled=true

[org.gnome.desktop.screensaver]
lock-enabled=true
show-notifications=true

[org.gnome.desktop.session]
idle-delay=uint32 300

[com.canonical.unity-greeter]
screen-reader=true

[org.gnome.libgnomekbd.keyboard]
layouts = ['hu']

[org.gnome.desktop.input-sources]
sources = [('xkb', 'hu')]

[org.gnome.nautilus.preferences]
always-use-location-entry=true

[org.gnome.yelp]
show-cursor=true

[org.gnome.settings-daemon.plugins.power]
critical-battery-action='shutdown'

[org.gnome.settings-daemon.plugins.media-keys]
email='<Super>e'
logout='<Primary><Alt>Delete'
www='<Super><Alt>w'

Attila
Comment 3 ksamak 2016-03-16 13:02:26 UTC
Hi,
We at hypra make accessibility features, and a configuration package suite, mate-accessibility.
We use compiz, and are currently engaged in re-introducing it in debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816652).
This bug is seriously jeopardising any attempt at a clean default set of relocatable schemas, from another package than compiz, and forces us to configure each impaired user machine by hand, or remotely.
We aim at introducing the mate-accessibility packages in debian 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
Comment 4 GNOME Infrastructure Team 2018-05-24 16:20:37 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/839.