Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <quinticent@localhost.localdomain>2007-08-10 16:57:43 (GMT)
committer John (J5) Palmieri <quinticent@localhost.localdomain>2007-08-10 16:57:43 (GMT)
commit8ed11b6feeded0e30e7b9596fdb58a2bfa4858a5 (patch)
treee6c2c2f865ee68e7393a4bb255337d1b5ffa21e2 /services
parent6573e8c5e6ed9ec8c9e7af10c6ad34acb10bcd67 (diff)
sugar console changes directory to the user's home directory and sets proc title
Diffstat (limited to 'services')
-rwxr-xr-xservices/console/sugar-console8
1 files changed, 8 insertions, 0 deletions
diff --git a/services/console/sugar-console b/services/console/sugar-console
index af709a6..357b7fe 100755
--- a/services/console/sugar-console
+++ b/services/console/sugar-console
@@ -6,7 +6,15 @@ pygtk.require('2.0')
import os
import sys
from sugar import env
+from sugar import util
sys.path.append(env.get_service_path('console'))
+# change to the user's home directory if it is set
+# root if not
+os.chdir(os.environ.get('HOME', '/'))
+
+#set the process title so it shows up as sugar-console not python
+util.set_proc_title('sugar-console')
+
import console