From 4e5b990f02d149af13f489bc20d43833033961d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 21 Jun 2016 02:07:22 +0200 Subject: [PATCH] Check for qubes-windows-tools presence before starting installation Prevents confusing error message. Fixes QubesOS/qubes-issues#1977 --- qubesmanager/main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 3159e98..1191abd 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -1169,6 +1169,16 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow): vm = self.get_selected_vm() assert not vm.is_running() + windows_tools_installed = \ + os.path.exists('/usr/lib/qubes/qubes-windows-tools.iso') + if not windows_tools_installed: + msg = QMessageBox() + msg.warning(self, "Error starting VM!", + "You need to install 'qubes-windows-tools' " + "package to use this option") + return + + thread_monitor = ThreadMonitor() thread = threading.Thread(target=self.do_start_vm_tools_install, args=(vm, thread_monitor))