From 9f67e5de9dea899209cd8b71b75f0b9f464f0ca8 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 10 Jul 2011 23:39:48 +0200 Subject: [PATCH] dom0: Regenerate appmenus also for TemplateVM in create_appmenus() --- dom0/qvm-core/qubes.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index e233acf9..b55e0a1f 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -1173,11 +1173,7 @@ class QubesTemplateVm(QubesVm): source_template = self.template_vm try: - if source_template is not None: - subprocess.check_call ([qubes_appmenu_create_cmd, source_template.appmenus_template_templates_dir, self.name, "vm-templates"]) - else: - # Only add apps to menu - subprocess.check_call ([qubes_appmenu_create_cmd, "none", self.name, vmtype]) + subprocess.check_call ([qubes_appmenu_create_cmd, self.appmenus_templates_dir, self.name, "vm-templates"]) except subprocess.CalledProcessError: print "Ooops, there was a problem creating appmenus for {0} VM!".format (self.name)