dom0: Regenerate appmenus also for TemplateVM in create_appmenus()

This commit is contained in:
Marek Marczykowski 2011-07-10 23:39:48 +02:00
parent 0813f49186
commit 9f67e5de9d

View File

@ -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)