GConf is Gnome's configuration database
GConf keys are of different types: integer, boolean, float, string, list
First, get a client connection to the database:
self.gconfClient = gconf.client_get_default()
To get a GConf key value:
self.username = self.gconfClient.get_string("/apps/pyconchatter/username")
- Returns
None
if the value is not set
- Returns
To set a GConf key:
self.gconfClient.set_string("/apps/pyconchatter/username", username)