mirror of
https://github.com/JuanCanham/skill-desktop-launcher.git
synced 2024-11-22 08:50:11 +00:00
Skip apps with no name
If app.get_name() returns None, the Skill can't handle the app so should just skip it. Most likely caused by an empty or malformed desktop entry.
This commit is contained in:
parent
42b819f9a2
commit
4c006504ea
@ -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