From 5e696298cf3c585a87830aa9dedaec08d494ba49 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 3 Oct 2012 22:28:49 +0200 Subject: [PATCH] dom0/core: fix icon handling on VM clone --- dom0/qvm-core/qubes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 16fc0cd4..69f9e6f7 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -1097,8 +1097,8 @@ class QubesVm(object): if src_vm.icon_path is not None and self.icon_path is not None: if os.path.exists (src_vm.dir_path): - if os.path.islink(src_vm.dir_path): - icon_path = os.readlink(src_vm.dir_path) + if os.path.islink(src_vm.icon_path): + icon_path = os.readlink(src_vm.icon_path) if verbose: print >> sys.stderr, "--> Creating icon symlink: {0} -> {1}".format(self.icon_path, icon_path) os.symlink (icon_path, self.icon_path)