Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Activities/XoEditor
(view source)
Revision as of 13:16, 5 April 2012
8 bytes removed
,
13:16, 5 April 2012
→A word to developers
Line 54:
Line 54:
The XO colors are stored using gconf:
The XO colors are stored using gconf:
−
<
code
>~/.gconf/desktop/user/%gconf.xml</
code
>
+
<
pre
>~/.gconf/desktop/user/%gconf.xml</
pre
>
−
<
code
>
+
<
pre
>
<?xml version="1.0"?>
<?xml version="1.0"?>
<gconf>
<gconf>
Line 66:
Line 66:
</entry>
</entry>
</gconf>
</gconf>
−
</
code
>
+
</
pre
>
The Python code used to write to gconf:
The Python code used to write to gconf:
−
<
code
>
+
<
pre
>
−
client = gconf.client_get_default()
+
client = gconf.client_get_default()
−
client.set_string('/desktop/sugar/user/color', '%s,%s' % (
+
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]))
−
</
code
>
+
</
pre
>
== Credits ==
== Credits ==
XOEditor was written and is maintained by [[User:Walter]].
XOEditor was written and is maintained by [[User:Walter]].
Walter
Bureaucrats
,
Administrators
10,579
edits