Merge pull request #14 from MycroftAI/krisgesling-patch-1

Skip apps with no name
This commit is contained in:
Åke
2019-09-19 08:02:45 +02:00
committed by GitHub

View File

@ -41,6 +41,9 @@ class DesktopLauncherSkill(MycroftSkill):
for app in gio.app_info_get_all():
name = app.get_name().lower()
if name == None:
# Likely an empty .desktop entry, skip it
continue
entry = [app]
tokenized_name = tokenizer.tokenize(name)[0]