From d34a2bb12e07e27df229fe73ac00aef2419cdf09 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 26 Dec 2008 16:15:48 +0000 Subject: [PATCH] fix a print to be a dbg() and disable inotify watching of the config file, it seemingly having some problems --- terminatorlib/config.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 5ecb2bf7..2f1737d7 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -219,12 +219,12 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore): dbg(" VS_RCFile: config file located at %s" % self.rcfilename) self.call_parser(True) - try: - monfile = gio.File(self.rcfilename) - monmon = monfile.monitor_file() - monmon.connect("changed", self.file_changed) - except NameError: - dbg ("gio module not found, config file monitoring disabled") + #try: + # monfile = gio.File(self.rcfilename) + # monmon = monfile.monitor_file() + # monmon.connect("changed", self.file_changed) + #except NameError: + # dbg ("gio module not found, config file monitoring disabled") def set_reconfigure_callback (self, function): dbg (" VS_RCFile: setting callback to: %s"%function) @@ -233,7 +233,7 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore): def file_changed (self, monitor, file, unknown, event): if event == gio.FILE_MONITOR_EVENT_CHANGES_DONE_HINT: - print "VS_RCFile: config file changed, reload" + dbg (" VS_RCFile: config file changed, reload") self.values = {} self.call_parser() self.reconfigure_callback()