Control system settings with keyfiles

System database files, located in /etc/dconf/db, cannot be edited because they are written in GVDB format. In order to change system settings using a text editor, you can modify keyfiles found in keyfile directories. Each keyfile directory corresponds to a particular system database file, and has the same name as the database file with a “.d” extension appended (for example, /etc/dconf/db/local.d). All keyfile directories are found in /etc/dconf/db, and each one contains keyfiles in a special format that can be compiled into the dconf database.

A keyfile in this directory will look something like this:

# Some useful default settings for our site



dconf update must be run whenever you modify a keyfile. When you do this, dconf compares the timestamp on a system database file with the timestamp on the corresponding keyfile directory. If the timestamp on the keyfile directory is more recent than the one on the database file, dconf regenerates the system-db file and sends a notification to the system Dbus, which in turn notifies all running applications to reread their settings.