From b1ad4975792d8c6aebc1f047baefdf70371e7c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 18 Oct 2013 03:40:21 +0200 Subject: [PATCH] Update log filenames - now qrexec and guid have VM name instead of XID --- qubesmanager/main.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 34f938d..268f1a1 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -1792,18 +1792,18 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow): action.setData(QVariant(text)) menu_empty = False - if running: - xid = vm.xid - if xid != None: - text = "/var/log/qubes/guid."+str(xid)+".log" - action = self.logs_menu.addAction(QIcon(":/log.png"), text) - action.setData(QVariant(text)) + text = "/var/log/qubes/guid."+vm.name+".log" + if os.path.exists(text): + action = self.logs_menu.addAction(QIcon(":/log.png"), text) + action.setData(QVariant(text)) + menu_empty = False - text = "/var/log/qubes/qrexec."+str(xid)+".log" - action = self.logs_menu.addAction(QIcon(":/log.png"), text) - action.setData(QVariant(text)) + text = "/var/log/qubes/qrexec."+vm.name+".log" + if os.path.exists(text): + action = self.logs_menu.addAction(QIcon(":/log.png"), text) + action.setData(QVariant(text)) + menu_empty = False - menu_empty = False self.logs_menu.setEnabled(not menu_empty) # blk menu