dom0: always set appmenus_templates_dir for QubesVm

If possible - to reasonable value (vm dir for UpdateableVM or template - for
template-based VM).
This commit is contained in:
Marek Marczykowski 2011-07-05 21:26:39 +02:00
parent b9e00b2189
commit 82bc4bad0b

View File

@ -294,8 +294,11 @@ class QubesVm(object):
self.uses_default_kernel = uses_default_kernel
self.appmenus_templates_dir = None
if updateable:
self.appmenus_templates_dir = self.dir_path + "/" + default_appmenus_templates_subdir
else if template_vm is not None:
self.appmenus_templates_dir = template_vm.appmenus_templates_dir
# By default allow use all VCPUs
if vcpus is None: