An exception to the broken gconf is gnome-tweak-tool which is still able to set gconf values (like the previously mentioned window theme). gnome-tweak-tool uses the following code:
from gi.repository import GConf
class GConfSetting:
def __init__(self, key, _type):
self._key = key
self._type = _type assert(self._type in (str, bool)) self._client = GConf.Client.get_default()
An exception to the broken gconf is gnome-tweak-tool which is still able to set gconf values (like the previously mentioned window theme). gnome-tweak-tool uses the following code:
from gi.repository import GConf
class GConfSetting:
assert( self._type in (str, bool))
self._ client = GConf.Client. get_default( )
def __init__(self, key, _type):
self._key = key
self._type = _type
def set_value(self, value):
self. _client. set_bool( self._key, value)
self. _client. set_string( self._key, value)
assert( False)
if self._type == bool:
elif self._type == str:
else: