diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2008-04-05 17:58:27 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2008-04-05 17:58:27 (GMT) |
commit | 9683cc19d84e05f1cbe8d2e24b17e2d8ee42dc5a (patch) | |
tree | f18456a3c9302f2a72c5747cd1233ba87cce8a8e /bin | |
parent | 463ece2b16d8296cb05dd1cb77267b4128ca5e69 (diff) |
Use the sugar-xo theme only on the XO
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sugar-shell.in | 7 | ||||
-rw-r--r-- | bin/sugar.in | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bin/sugar-shell.in b/bin/sugar-shell.in index 45a07dc..55a25a7 100644 --- a/bin/sugar-shell.in +++ b/bin/sugar-shell.in @@ -18,7 +18,12 @@ import os import sys -os.environ['GTK2_RC_FILES'] = '@prefix@/share/sugar/data/sugar-xo.gtkrc' +if os.environ.has_key('SUGAR_THEME'): + theme = os.environ['SUGAR_THEME'] +else: + theme = 'sugar' + +os.environ['GTK2_RC_FILES'] = '@prefix@/share/sugar/data/%s.gtkrc' % theme sys.path.insert(0, '@prefix@/share/sugar/shell') diff --git a/bin/sugar.in b/bin/sugar.in index fd85f7f..88e478a 100644 --- a/bin/sugar.in +++ b/bin/sugar.in @@ -1,5 +1,7 @@ #!/bin/sh +export SUGAR_THEME=sugar-xo + if [ -f /etc/olpc-security ] ; then exec dbus-launch --exit-with-session --config-file=/etc/dbus-1/session-olpc.conf sugar-shell else |