mirror of
https://github.com/JuanCanham/skill-desktop-launcher.git
synced 2024-11-22 08:50:11 +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