Show only really installed appmenus as "selected" (#678)

This commit is contained in:
Marek Marczykowski 2012-11-27 02:35:39 +01:00
parent c0f73a6093
commit 62365b6da2

View File

@ -79,8 +79,10 @@ class AppmenuSelectManager:
whitelisted = [item.strip() for item in f]
f.close()
self.app_list.clear()
# Check if appmenu entry is really installed
whitelisted = [a for a in whitelisted if os.path.exists('%s/apps/%s-%s' % (self.vm.dir_path, self.vm.name, a))]
self.app_list.clear()
available_appmenus = []
for template_file in template_file_list: