Fixed qubes.xml changes monitoring
This commit is contained in:
parent
2524df5af8
commit
de8c46dff2
@ -49,9 +49,8 @@ qubes_guid_path = '/usr/bin/qubes_guid'
|
|||||||
class QubesConfigFileWatcher(ProcessEvent):
|
class QubesConfigFileWatcher(ProcessEvent):
|
||||||
def __init__ (self, update_func):
|
def __init__ (self, update_func):
|
||||||
self.update_func = update_func
|
self.update_func = update_func
|
||||||
pass
|
|
||||||
|
|
||||||
def process_IN_CLOSE_WRITE (self, event):
|
def process_IN_MODIFY (self, event):
|
||||||
self.update_func()
|
self.update_func()
|
||||||
|
|
||||||
class VmStatusIcon(QLabel):
|
class VmStatusIcon(QLabel):
|
||||||
@ -964,7 +963,7 @@ def main():
|
|||||||
global manager_window
|
global manager_window
|
||||||
manager_window = VmManagerWindow()
|
manager_window = VmManagerWindow()
|
||||||
wm = WatchManager()
|
wm = WatchManager()
|
||||||
mask = EventsCodes.OP_FLAGS.get('IN_CLOSE_WRITE')
|
mask = EventsCodes.OP_FLAGS.get('IN_MODIFY')
|
||||||
|
|
||||||
global notifier
|
global notifier
|
||||||
notifier = ThreadedNotifier(wm, QubesConfigFileWatcher(manager_window.mark_table_for_update))
|
notifier = ThreadedNotifier(wm, QubesConfigFileWatcher(manager_window.mark_table_for_update))
|
||||||
|
Loading…
Reference in New Issue
Block a user