jistr / ansible-gsetting

Ansible module for setting GSettings entries
Apache License 2.0
47 stars 18 forks source link

Support specifying both schema and path #4

Open radomirbosak opened 7 years ago

radomirbosak commented 7 years ago

I'd like to issue basically this command

$ gsettings get org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name

But I have to fake this with the setting

- name: new terminal shortcut
  gsetting:
    user: me
    key: "org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/.name"
    value: "New terminal"

The path must be specified in the case, since the schema for custom keyboard shortcuts is relocatable:

$ gsettings get org.gnome.settings-daemon.plugins.media-keys.custom-keybinding name
Schema “org.gnome.settings-daemon.plugins.media-keys.custom-keybinding” is relocatable (path must be specified)
nouchka commented 5 years ago

@radomirbosak thanks for this temp fix