Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed dconf-tools. In this case I am manipulating the display of a name in the panel on the session indicator.

I can change this in dconf-editor gui with no problem, I go to apps/indicator-session, and untick show-real-name-on-panel.

However, I have also tried to toggle it just using dconf at the command line:

dconf write /com/canonical/indicator/session/show-real-name-on-panel false

After rebooting, the panel is unchanged, and the key in the dconf-editor is unchanged as well.

Moreover, trying to update the dconf database via the terminal yields an error:

$ dconf update
fatal: Error opening directory '/etc/dconf/db': No such file or directory

From my experience it seems as though dconf and dconf-editor have no relationship, so I just wonder what I am doing wrong.

If I can get this figured out, I want to just place the command in a bash script to run the next time I have to do a clean install for an upgrade*. I do a lot of tweaks in 6 months and I just want to automate as much as possible from now on.

  • Slightly off-topic: the distribution upgrade mechanism has never worked without a hitch for me; I tried it going from 11.04 to 11.10 as well.
share|improve this question
up vote 23 down vote accepted

You can use the gsettings tool.

gsettings set com.canonical.indicator.session show-real-name-on-panel false
share|improve this answer
Thank you, that worked! Does that work anywhere that dconf would? Is it going to be deprecated in favor of dconf, or will it continue to be used for the foreseeable future? – Inkayacu Oct 25 '11 at 21:41
Yes, gsettings can be used anywhere dconf would. – Anonymous Oct 25 '11 at 21:43
No, it will not be deprecated. dconf replaced gconf which will be deprecated. gconf can be changed with gconf-editor or gconftool-2. dconf can be changed with dconf-editor or gsettings. – Anonymous Oct 25 '11 at 21:45
gconf saves its files in your home directory under the .gconf/ directory. – Anonymous Oct 25 '11 at 21:46

The following worked for me on Ubuntu 14.04:

dconf write /org/gnome/gnome-session/auto-save-session true

The value did change and stayed changed after reboot. I had another problem that the windows weren't saved but that's a whole different issue.

share|improve this answer

It seems (at least in 15.10) that there are some things (specifically compiz) which only store config at the dconf layer and can't be set via gsettings. It's possible this affects other config paths, but probably unlikely - since compiz is at a lower layer than unity I'm not surprised it behaves differently.

For example, this will work:

dconf write /org/compiz/profiles/unity/plugins/core/outputs "['3200x1800+288+2160', '3840x2160+0+0']"

while this will not:

gsettings set org.compiz.profiles.unity.plugins.core outputs "['3200x1800+288+2160', '3840x2160+0+0']"
# No such schema 'org.compiz.profiles.unity.plugins.core'

Now if only I could figure out how to reload compiz without crashing everything...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.