使用这样的文件为我的所有用户设置默认 gsettings/etc/dconf/db/local.d/my-settings
工作正常:
[org/gnome/desktop/background]
picture-uri='file:///usr/local/share/backgrounds/wallpaper.jpg'
现在我正在尝试设置一个自定义键绑定,这需要一个:PATH
(可重定位的架构),如下所示:
[org/gnome/settings-daemon/plugins/media-keys/custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0]
name='keybinding-name'
command='my-command'
binding='my-keybinding'
不幸的是,运行后dconf update
,配置值尚未设置:
$ gsettings list-recursively org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/
org.gnome.settings-daemon.plugins.media-keys.custom-keybinding command '<newname>'
org.gnome.settings-daemon.plugins.media-keys.custom-keybinding name '<newname>'
org.gnome.settings-daemon.plugins.media-keys.custom-keybinding binding '<newname>'
如何正确设置这些值?
使用
作品!