fix a print to be a dbg() and disable inotify watching of the config file, it seemingly having some problems

This commit is contained in:
Chris Jones 2008-12-26 16:15:48 +00:00
parent 2228e2c3f3
commit d34a2bb12e
1 changed files with 7 additions and 7 deletions

View File

@ -219,12 +219,12 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore):
dbg(" VS_RCFile: config file located at %s" % self.rcfilename) dbg(" VS_RCFile: config file located at %s" % self.rcfilename)
self.call_parser(True) self.call_parser(True)
try: #try:
monfile = gio.File(self.rcfilename) # monfile = gio.File(self.rcfilename)
monmon = monfile.monitor_file() # monmon = monfile.monitor_file()
monmon.connect("changed", self.file_changed) # monmon.connect("changed", self.file_changed)
except NameError: #except NameError:
dbg ("gio module not found, config file monitoring disabled") # dbg ("gio module not found, config file monitoring disabled")
def set_reconfigure_callback (self, function): def set_reconfigure_callback (self, function):
dbg (" VS_RCFile: setting callback to: %s"%function) dbg (" VS_RCFile: setting callback to: %s"%function)
@ -233,7 +233,7 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore):
def file_changed (self, monitor, file, unknown, event): def file_changed (self, monitor, file, unknown, event):
if event == gio.FILE_MONITOR_EVENT_CHANGES_DONE_HINT: 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.values = {}
self.call_parser() self.call_parser()
self.reconfigure_callback() self.reconfigure_callback()