Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/sugar-shell.in3
-rw-r--r--bin/sugar.in1
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