Introduction to the GConf library

by:

Havoc Pennington

Abstract

This article introduces the concepts behind the GConf configuration library scheduled to ship with the next major revision of the GNOME development environment.


Table of Contents
Introduction: What is GConf?
Implementation Overview
Application Programming
Coding Example
Other Resources

Introduction: What is GConf?

GConf is a configuration data storage mechanism scheduled to ship with GNOME 2.0. GConf does work without GNOME however; it can be used with plain GTK+, Xlib, KDE, or even text mode applications as well. As of March 2000, there is no stable release of GConf yet, but the library is feature-complete.

The GNOME desktop is currently in the Windows 3.1 era with respect to application configuration data; applications store their configuration in flat .INI-style files. Windows later introduced a more sophisticated solution, the Registry. However, the Registry still has a number of shortcomings:



GConf attempts to leapfrog the registry concept. It's a library which provides a simple configuration data storage interface to applications, and also an architecture that tries to make things easy for system administrators.

Here are some of the features of GConf: