diff options
author | Eduardo Silva <edsiper@gmail.com> | 2007-12-06 18:39:41 (GMT) |
---|---|---|
committer | Eduardo Silva <edsiper@gmail.com> | 2007-12-06 18:39:41 (GMT) |
commit | db8dd23d85f4beed98307abf709b66b6e2a3da48 (patch) | |
tree | 00f026fddfee23d6def7e5a3535f58d6059fe20f /terminal.py | |
parent | c0909227e60ef4bb023188c5dec9ae7a508da1ea (diff) |
Replace go home command
Diffstat (limited to 'terminal.py')
-rw-r--r-- | terminal.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/terminal.py b/terminal.py index 60d989f..6bb2018 100644 --- a/terminal.py +++ b/terminal.py @@ -15,6 +15,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import os + import logging from gettext import gettext as _ @@ -23,7 +24,8 @@ import dbus from sugar.activity import activity from sugar import env - +from sugar.graphics.toolbutton import ToolButton +from sugar.graphics.palette import Palette import ConfigParser import os.path @@ -72,8 +74,9 @@ class VTE(vte.Terminal): vte.Terminal.__init__(self) self._configure_vte() self.connect("child-exited", lambda term: term.fork_command()) + + os.chdir(os.environ["HOME"]) self.fork_command() - self.feed_child("cd ~/ && clear\n") def _configure_vte(self): conf = ConfigParser.ConfigParser() |