appmenus: handle the case when template don't have appicons yet

This commit is contained in:
Marek Marczykowski-Górecki 2014-02-13 10:42:30 +01:00
parent 2565e30374
commit 168b182a7d

View File

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