Link to icon on template clone (#225)

This commit is contained in:
Marek Marczykowski 2011-04-19 15:56:00 +02:00
parent f28407bca6
commit 3f28f16336

View File

@ -1130,6 +1130,11 @@ class QubesTemplateVm(QubesVm):
format(src_template_vm.appmenus_templates_dir, self.appmenus_templates_dir)
shutil.copytree (src_template_vm.appmenus_templates_dir, self.appmenus_templates_dir)
icon_path = "/usr/share/qubes/icons/template.png"
if verbose:
print "--> Creating icon symlink: {0} -> {1}".format(self.icon_path, icon_path)
os.symlink (icon_path, self.icon_path)
# Create root-cow.img
self.commit_changes()