Dconf, can read value but not write it (given address is empty)

on ubuntu 20.04, this was working well to tweak my setting via cli:

dconf write /org/gnome/desktop/interface/text-scaling-factor 0.9

however on ubuntu 22.04, I can only read the value

$ dconf read /org/gnome/desktop/interface/text-scaling-factor    
0.94999999999999996

$ dconf write /org/gnome/desktop/interface/text-scaling-factor 0.9
error: The given address is empty

Any idea how to solve ?
Gnome tweaks can modify it, but I want to do it via cli

Asked By: n0tis

||

What is the result of echo $DBUS_SESSION_BUS_ADDRESS

If this environment variable is not set then try setting it with:

export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/bus

Then try your dconf write again.

Answered By: codlord
Categories: Answers Tags: , , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.