From 087e882a357b520c712974c96112582869fe5cdc Mon Sep 17 00:00:00 2001 From: Sho Date: Sat, 1 Aug 2026 23:40:27 +0900 Subject: [PATCH] fix: resolve NameError search_dirs in app_launcher_service.py and relax OnlyShowIn filtering --- quickshell/services/python/app_launcher_service.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/quickshell/services/python/app_launcher_service.py b/quickshell/services/python/app_launcher_service.py index 28ee43c..cecbae9 100755 --- a/quickshell/services/python/app_launcher_service.py +++ b/quickshell/services/python/app_launcher_service.py @@ -55,6 +55,7 @@ def parse_desktop_apps(): if fallback_theme not in themes_to_search: themes_to_search.append(fallback_theme) + search_dirs = [] bases = [ os.path.expanduser('~/.local/share/icons'), os.path.expanduser('~/.local/share/flatpak/exports/share/icons'), @@ -196,10 +197,7 @@ def parse_desktop_apps(): continue only_in = [x.strip().lower() for x in s.get('OnlyShowIn', '').split(';') if x.strip()] - not_in = [x.strip().lower() for x in s.get('NotShowIn', '').split(';') if x.strip()] - if only_in and 'kde' not in only_in: - continue - if not_in and 'kde' in not_in: + if only_in and not any(env in only_in for env in ['kde', 'gnome', 'nobara', 'fedora', 'ubuntu', 'wayland', 'x-cinnamon', 'pantheon', 'unity', 'xfce']): continue name = s.get('Name', '')