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
commit f4ba513311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]