Activities/XoEditor: Difference between revisions
| Line 54: | Line 54: | ||
The XO colors are stored using gconf: | The XO colors are stored using gconf: | ||
< | <pre>~/.gconf/desktop/user/%gconf.xml</pre> | ||
< | <pre> | ||
<?xml version="1.0"?> | <?xml version="1.0"?> | ||
<gconf> | <gconf> | ||
| Line 66: | Line 66: | ||
</entry> | </entry> | ||
</gconf> | </gconf> | ||
</ | </pre> | ||
The Python code used to write to gconf: | The Python code used to write to gconf: | ||
< | <pre> | ||
client = gconf.client_get_default() | |||
client.set_string('/desktop/sugar/user/color', '%s,%s' % ( | |||
self._game.colors[0], self._game.colors[1])) | self._game.colors[0], self._game.colors[1])) | ||
</ | </pre> | ||
== Credits == | == Credits == | ||
XOEditor was written and is maintained by [[User:Walter]]. | XOEditor was written and is maintained by [[User:Walter]]. | ||