From 168b182a7d5beb3a52088f0e195f85a7d46a853d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 13 Feb 2014 10:42:30 +0100 Subject: [PATCH] appmenus: handle the case when template don't have appicons yet --- appmenus-scripts/qubes-core-appmenus.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appmenus-scripts/qubes-core-appmenus.py b/appmenus-scripts/qubes-core-appmenus.py index 4ee2d00..d5a4fc3 100644 --- a/appmenus-scripts/qubes-core-appmenus.py +++ b/appmenus-scripts/qubes-core-appmenus.py @@ -101,6 +101,8 @@ def QubesVm_appicons_create(self, srcdir=None): srcdir = self.appmenus_template_icons_dir if srcdir is None: return + if not os.path.exists(srcdir): + return whitelist = os.path.join(self.dir_path, vm_files['appmenus_whitelist']) whitelist = [line.strip() for line in open(whitelist)]