mirror of
https://github.com/JuanCanham/skill-desktop-launcher.git
synced 2024-12-22 21:47:22 +00:00
Merge pull request #14 from MycroftAI/krisgesling-patch-1
Skip apps with no name
This commit is contained in:
commit
f4ba513311
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user