1.3. GConf Daemon

The GConf daemon is called gconfd-2. The GConf daemon notifies applications when a preference value changes. For example, you might select to show only icons in toolbars in the Menus & Toolbars preference tool. When you select this option in the preference tool, the toolbars on all open applications are updated instantly. The GConf daemon can operate locally, or across a network.

An instance of the GConf daemon is started for each user. The GConf daemon does not have to deal with complex problems such as authentication and data security. When the GConf daemon starts, the daemon loads the GConf path file. The GConf daemon manages all access between applications and the configuration sources.

When an application requests the value of a preference key, the daemon searches the configuration sources as follows:

  1. Search for the value of the preference key in each configuration source, in the order specified in the path file. If the value is found, return the value.

  2. If a value is not found, search for the schema key that corresponds to the preference key in each configuration source, in the order specified in the path file.

  3. If the schema key is found, check the value of the schema key.

  4. If the value of the schema key is a schema object, return the suggested value in the <default> element of the schema object.

The GConf daemon also caches preference key values. All applications use this cache, so applications only need to access the configuration sources once.

To terminate the GConf daemon, run the following command:

# gconftool-2 --shutdown