Someone asked this question about a year ago but I was unable to turn either of the answers into usable code. The accepted answer seemed to reference a C function (I could find no python equivalent) and the other one referenced a python function that did not work for me (applet.get_preferences_key() returns None). wat do? Examples would be awesome…
Share
I can’t access the pages linked in the accepted answer from the other question for some reason. However, you can access the GConf C libraries through PyGObject introspection:
from gi.repository import GConf. So, the function that they recommend (if only I could load the web page to see), is presumably available in Python. Note that if your applet is using pygtk at all, there might be conflicts with using PyGObject introspection (though I think if you’re using introspection only for GConf and not for GTK, you should be OK).Here are the contents of GConf via introspection: