From bc8ff30a60612cb0d4f3971fecb014eafc17d308 Mon Sep 17 00:00:00 2001 From: Sayamindu Dasgupta Date: Thu, 05 Jun 2008 14:02:15 +0000 Subject: Make the activity exit when the user exits the shell. Fixes dlo#5520 --- 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() -- cgit v0.9.1