From de8c46dff26ee81f8ad23e43cefa2e9ac25ab065 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Mon, 14 Mar 2011 22:17:28 +0100 Subject: [PATCH] Fixed qubes.xml changes monitoring --- qubesmanager/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 45e1697..f9a1e44 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -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))