For example :
dconf dump / | grep mouse
[org/mate/desktop/peripherals/mouse]
....
So if I want to make a gsettings command based on this output, I look to gsettings to list the schemas, but….
(output edited to include only likely candidates ):
gsettings list-schemas | grep mouse
....
org.mate.peripherals-mouse
org.gnome.desktop.peripherals.mouse
org.mate.SettingsDaemon.plugins.mouse
....
So it is not clear to me which of these mouse schemas I should use. My understanding is that gsettings is a command line interface to the dconf database, but there is no clear correspondence between gsettings data and dconf data — as far as I can see.
Can someone explain or point me to explanatory documentation. Thanks.
Best Answer
Typically,
dconf
schemas translate nicely intogsettings
schemas by replacing slashes with dots and vice versa.In your example,
org.mate.peripherals-mouse
is the closest matching for what I'd expect to be a static schema.However, not all
gsettings
schemas translate nicely. There's something known as relocatable schemas:For such cases, schema also requires a particular path added to it. For example,
Here's another example from one of Budgie desktop schemas:
Typically paths for relocatable
gsettings
schemas are the same as fordconf
, but it's not guaranteed from what I understand. Manual way would be to rundconf watch /
and use GUI buttons/sliders/preferences menus to figure out which schemas are controlled by those.