Fixed qubes.xml changes monitoring

This commit is contained in:
Tomasz Sterna 2011-03-14 22:17:28 +01:00
parent 2524df5af8
commit de8c46dff2

View File

@ -49,9 +49,8 @@ qubes_guid_path = '/usr/bin/qubes_guid'
class QubesConfigFileWatcher(ProcessEvent):
def __init__ (self, update_func):
self.update_func = update_func
pass
def process_IN_CLOSE_WRITE (self, event):
def process_IN_MODIFY (self, event):
self.update_func()
class VmStatusIcon(QLabel):
@ -964,7 +963,7 @@ def main():
global manager_window
manager_window = VmManagerWindow()
wm = WatchManager()
mask = EventsCodes.OP_FLAGS.get('IN_CLOSE_WRITE')
mask = EventsCodes.OP_FLAGS.get('IN_MODIFY')
global notifier
notifier = ThreadedNotifier(wm, QubesConfigFileWatcher(manager_window.mark_table_for_update))