From 9fa21a31327a0b9d1fbf42f1a71119af6f33ecb4 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Sun, 6 Jan 2008 14:41:36 +0000 Subject: [PATCH] Make child restarting behaviour work without a default profile --- terminator | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/terminator b/terminator index 22066b92..f3ee10a2 100755 --- a/terminator +++ b/terminator @@ -78,7 +78,7 @@ class TerminatorTerm: 'scrollback_lines' : 100, 'focus' : 'sloppy', 'visible_bell' : False, - 'child_restart' : True, + 'child_restart' : False, 'link_scheme' : '(news|telnet|nttp|file|http|ftp|https)', '_link_user' : '[%s]+(:[%s]+)?', 'link_hostchars' : '-A-Za-z0-9', @@ -138,6 +138,11 @@ class TerminatorTerm: self._vte.connect ("window-title-changed", self.on_vte_title_change) exit_action = self.gconf_client.get_string (self.profile + "/exit_action") + if not exit_action: + if self.defaults['child_restart']: + exit_action = "restart" + else: + exit_action = "close" if exit_action == "restart": self._vte.connect ("child-exited", self.spawn_child) if exit_action == "close":