diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2008-03-28 17:37:36 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2008-03-28 17:37:36 (GMT) |
commit | a816dda2217da58221e911add7da8791a339d69f (patch) | |
tree | 9a560396206cf31e102394869da46b8bdbe22b0c /bin | |
parent | 7cf7595d889dc264dbe529061bca0a3b2f3950c7 (diff) |
Move theme env setup to sugar-shell.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sugar-shell.in | 3 | ||||
-rw-r--r-- | bin/sugar.in | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/sugar-shell.in b/bin/sugar-shell.in index 2b73c4a..45a07dc 100644 --- a/bin/sugar-shell.in +++ b/bin/sugar-shell.in @@ -15,8 +15,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +import os import sys +os.environ['GTK2_RC_FILES'] = '@prefix@/share/sugar/data/sugar-xo.gtkrc' + sys.path.insert(0, '@prefix@/share/sugar/shell') from main import main diff --git a/bin/sugar.in b/bin/sugar.in index 88b4168..fd85f7f 100644 --- a/bin/sugar.in +++ b/bin/sugar.in @@ -1,6 +1,5 @@ #!/bin/sh -export GTK2_RC_FILES=@prefix@/share/sugar/data/sugar-xo.gtkrc if [ -f /etc/olpc-security ] ; then exec dbus-launch --exit-with-session --config-file=/etc/dbus-1/session-olpc.conf sugar-shell else |