Gsettings do not work

Hello!

I’m using fresh Nobara install with clean Gnome, want to make smth like gnome_setup.sh to aplly the same settings on all devices.

Tried to do the following (just as an example) via gsettings, without success so far:

gsettings set org.gnome.desktop.peripherals.keyboard delay 260

If done via GUI - value changes but “gsettings get” show old number, if done via “gsettings set” - “gsettings get” shows correct value but in fact nothing changes, so GUI and gsettings work separately.

Tried via dconf as well. In case delay value set via GUI - “dconf read /org/gnome/desktop/peripherals/keyboard/delay” shows the correct number. If using “dconf write” - setting apllies correctly and GUI reflects the same, but in case of further attempts to change value “dconf write” returns delay installed during the very first time, seems like it is being cashed?

To sum up, neither gsettings nor dconf do not allow atomatical setup. For avoidance of doubts problem relates not only to the above mentioned examples, attemps to change keymappings provide the same result, gsd-keyboard and other gsd services are enabled and operate normally, system itself is up-to-date, logout and reboot do not change the behaviour.

Any advice will be of great help!

gsettings set expects a serialized GVariant as value. Same as is printed by get. The command you showed isn’t that.

This works fine:

gsettings set org.gnome.desktop.peripherals.keyboard delay “uint32 260”

Thanks for idea! It helped, although not exactly like suggested. With uint32 prior to setting value at least dconf, GUI and actual behaviour are all the same. With regard to gsettings, still no syncronization with dconf/GUI

Gsettings doesn’t have a GUI. There’s Dconf Editor, sure, is that what you mean with “GUI”?

There’s no issue between Gsettings and dconf:

$ gsettings set org.gnome.desktop.peripherals.keyboard delay “uint32 260”
$ dconf read /org/gnome/desktop/peripherals/keyboard/delay
uint32 260

Are you running the gsettings commands within the same dbus session as the GUI?

I have another PC with Arch with Gnome, and there it works exactly as you describe - no issue between gsettings and dconf, however on Nobara with Gnome gsettings and dconf are not syncronized.

yes, the same dbus session