Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--terminal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.py b/terminal.py
index 78e1d44..d239bc5 100644
--- a/terminal.py
+++ b/terminal.py
@@ -73,6 +73,7 @@ class TerminalActivity(activity.Activity):
self._vte = VTE()
self._vte.set_scroll_on_keystroke(True)
+ self._vte.connect("child-exited", lambda term: self.close())
self._vte.show()
scrollbar = gtk.VScrollbar(self._vte.get_adjustment())
@@ -113,7 +114,6 @@ class VTE(vte.Terminal):
def __init__(self):
vte.Terminal.__init__(self)
self._configure_vte()
- self.connect("child-exited", lambda term: term.fork_command())
os.chdir(os.environ["HOME"])
self.fork_command()