GConf

GConf

GConf is a system used by the GNOME desktop environment for storing configuration settings for the desktop and applications.Changes to this system are controlled by GConfd, a daemon. GConfd watches out for changes to the database, and when they are changed, it applies the new settings to applications using it. This technology is known as "auto-apply", compared to "explicit-apply", which requires users to press an OK or Apply button to make changes come into effect. The term "instant-apply" is sometimes used, compared to plain "apply".

The GConf database by default uses a system of directories and XML files, stored in a directory called ~/.gconf. GConf can also use other backends, such as a database server, but XML file storage is the most common configuration.

The application Gconf-editor is provided to allow users to change settings manually, but it is not usually used for end user preferences. These should be provided by the application, but hasn't in some cases, causing upset among users. (see main gconf-editor article for details)

Architecture

GConf is currently based on the C implementation of CORBA named ORBit. Its architecture consists of a session daemon that initializes various sources of configuration schemas on user login. Each source is based on a specific backend that translates the key and value pairs that compose the configuration database; the default backend is based on XML. At this time, this is the only working backend for GConf, although an LDAP backend existed in embryonic form. Each source can also be set to read-only, in order to create a default basic configuration, e.g. in a corporate network.

The values inside the GConf database are indexed using a path string in the form of /path/to/application/key.

The proper way to access the GConf database held by the GConf daemon is to use the GConfClient GObject-based class.

Changes notification

When writing an application that uses GConf, one should never directly poll the database. Instead, one should attach a callback to a given key, thus using a Model-view-controller paradigm. Each time an application changes the value bound to a specific key, the notification callbacks will be invoked.

Schemas

An application using GConf should provide a description for each key it creates inside the GConf database. This configuration meta-data is also stored inside the configuration database, and is called a "schema"; it could contain a (possibly localized) descriptive text, the valid type of the value bound to a key, and a default value.

Bindings

Like many libraries in the GNOME platform, GConf can be accessed using various programming languages, such asC, C++, Perl, Java and Python.

External links

* [http://www.gnome.org/projects/gconf/index.html GConf Project Page]
* [http://developer.gnome.org/doc/API/gconf Official GConf Manual]
* [http://www.gnome.org/projects/gconf/plans.html Future GConf Plans]
* [http://gtk2-perl.sourceforge.net/doc/pod/Gnome2/GConf.html Gnome2::GConf Perl Module]


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • GConf — ist ein von der Arbeitsumgebung GNOME verwendetes System zur Speicherung von Konfigurationseinstellungen des Desktops und der GNOME Anwendungen. Änderungen an diesen Einstellungen werden durch den Daemon gconfd vorgenommen. gconfd überwacht die… …   Deutsch Wikipedia

  • GConf — GConf  система, используемая в GNOME для хранения настроек рабочего стола и приложений. Изменения контролируются службой GConfd. GConfd следит за изменениями в базе данных, и при их изменении, передаёт новые настройки приложениям. База… …   Википедия

  • GConf — est un système employé par l environnement graphique GNOME jusqu à sa version 2.32 pour stocker les données de configuration du bureau des applications dans une base de données. Cette dernière emploie par défaut un système de fichiers XML,… …   Wikipédia en Français

  • Gconf — est un système employé par l environnement graphique GNOME pour stocker les données de configuration du bureau des applications dans une base de données. Cette dernière emploie par défaut un système de fichiers XML, stockés dans le répertoire… …   Wikipédia en Français

  • GConf — es un sistema utilizado por GNOME para almacenar las opciones de la configuración del entorno gráfico y de los distintos programas. Forma parte de política del entorno para mejorar y simplificar la interfaz gráfica de usuario. El Demonio… …   Wikipedia Español

  • GConf — es un sistema utilizado por GNOME para almacenar las opciones de la configuración del entorno gráfico y de los distintos programas. Forma parte de política del entorno para mejorar y simplificar la interfaz gráfica de usuario. El demonio GConfd… …   Enciclopedia Universal

  • Gconf-Editor — Gconf editor est un logiciel libre de l environnement graphique GNOME. Le Gconf editor donne à des utilisateurs la capacité d accéder à des arrangements stockés dans la base de données XML de configuration de GConf …   Wikipédia en Français

  • Gconf-editor — est un logiciel libre de l environnement graphique GNOME. Le Gconf editor donne à des utilisateurs la capacité d accéder à des arrangements stockés dans la base de données XML de configuration de GConf. Il est employé principalement par des …   Wikipédia en Français

  • gconf-editor — ? Información general Género ? …   Wikipedia Español

  • gconf-editor — gconf editor …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”