From 320847de91a51cd0205419fb8ba159248fa5b05d Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 6 Sep 2011 01:17:09 +0200 Subject: [PATCH] dom0: correctly remove appmenus for ServiceVM (if any) --- dom0/qvm-core/qubes.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 928d209c..319c34bd 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -1755,7 +1755,12 @@ class QubesAppVm(QubesVm): if dry_run: return - subprocess.check_call ([qubes_appmenu_remove_cmd, self.name]) + vmtype = '' + if self.is_netvm(): + vmtype = 'servicevms' + else: + vmtype = 'appvms' + subprocess.check_call ([qubes_appmenu_remove_cmd, self.name, vmtype]) super(QubesAppVm, self).remove_from_disk()