Mark Shuttleworth recently blogged about the decision to include the Qt libraries in the 11.10 release, with a followup from Jono Bacon. Mark states that the biggest challenge to integrating apps written in Qt into the larger Ubuntu system is Qt's current non-compatibility with dconf.
What is dconf, and what is the role it plays in Ubuntu?
Introduction
As other answers on this site discuss
gconf
anddconf
together, I will just concentrate on discussing command-line tools such asgsettings
and the guidconf-editor
that are used to access thedconf
database.At the GNOME official site it is noted that
Using
gsettings
to view and change settingsOnce one gets to know
gsettings
it can be as easy as the guidconf-editor
. The options can be listed by enteringman gsettings
or going to the Ubuntu manpages online.NOTE: As everyone's system has different programs installed, you may have to substitute the specific items I choose for different ones when experimenting yourself, as I am using XUbuntu XFce with quite a lot of GNOME programs.
To list all the available schemas, enter
To also include all the keys, enter
However, it is usually easier to specify what you want with, for examples,
This returns a long list; I have shortened it to:
Now when you have found the schema that you are interested in, list the keys with
This returns a list (again I have shortened it):
Pick one and see what the current value is with
This returns a value of true, so to reverse it, use
These are trivial examples, but show basically how keys and values are identified and changed with
gsettings
.Using dconf-editor to change settings
The GUI program,
dconf-editor
is installed with dconf-tools package by clicking here or by runningThen run it by entering in the terminal or in the quick launch menu,
dconf-editor
.As you can see in the screenshot, all the various schemas can be expanded on the left hand side and the appropriate key selected. It is very straightforward to navigate to the value you want (in this case the
gnome-mplayer
preferences). You can click the check box to have a value activated or add a numerical value into one of the other boxes. You can also search within dconf editor with Ctrl+F keyboard shortcut.You can also add another log say to
log-viewer
by adding a path in the form ['/var/log/auth.log', var....'] in the screenshot below.Conclusion
There are many other useful ways that you can tweak settings with both
gsettings
anddconf-editor
and they are straightforward to use. It is worth looking through them to see if there are options there that are not in the programs' preferences, as you may be able to customize your program just the way you want. As fossfreedom recently showed in this questionknowing how to use
gsettings
ordconf-editor
is extremely valuable. See also:For those coming from windows that want a simple reply, dconf is the gnome equivalent to the windows registry... a big binary tree where any program can store and share their configuration.
They first migrated from the traditional unix configs (one text files for each app, each with their own format) to a standard tree of XML files, managed by gconf. In recent times, as almost no one edited those XML files directly and the performance problems of reading and parsing MANY files, they migrated to a binary format by migrating from gconf to dconf.
Unlike windows registry, dconf should have all config entries listed, even if they are set to the default values. So there are no hidden entries, you can change then or reset then to default easily.
dconf is not Ubuntu specific, it's the GNOME technology used to store application settings. For more details please read http://live.gnome.org/dconf