使用如下文件为所有用户设置默认的 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>'
我该如何正确设置这些值?
答案1
使用
[org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0]
作品!