diff options
Diffstat (limited to 'bin/sugar-shell.in')
-rw-r--r-- | bin/sugar-shell.in | 7 |
1 files changed, 6 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') |