From 6da60c043b4fad01246f204b0b02dac68c9e4a22 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 18 Oct 2012 14:37:46 -0700 Subject: [PATCH] Attempt to fix a hang in tunnellet X11 situations. Closes LP#943171 --- terminatorlib/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 54154bac..5844a8e4 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -351,9 +351,10 @@ class Config(object): self.gconf = gconf.client_get_default() value = self.gconf.get('/apps/metacity/general/focus_mode') - self.system_focus = value.get_string() - self.gconf.notify_add('/apps/metacity/general/focus_mode', - self.on_gconf_notify) + if value: + self.system_focus = value.get_string() + self.gconf.notify_add('/apps/metacity/general/focus_mode', + self.on_gconf_notify) return(self.system_focus) def on_gconf_notify(self, _client, _cnxn_id, _entry, _what):