From 41c57d69962b4ac912a181d2e20be51d0eda84a8 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 16 Aug 2026 22:30:09 +0545 Subject: [PATCH] fix(globalmenu): match desktop files case-insensitively GIMP reports WM_CLASS "Gimp" but desktop file is gimp.desktop. Exact-case lookup missed, so bar fell back to raw window title (e.g. "0 (RGB color, 8-bit, non-linear integer)"). --- src/utils/app_name_resolver.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/app_name_resolver.py b/src/utils/app_name_resolver.py index 493ce5b..a3d8138 100644 --- a/src/utils/app_name_resolver.py +++ b/src/utils/app_name_resolver.py @@ -19,6 +19,12 @@ class AppName: for f in self.files: if f.startswith(wmclass + ".desktop"): desktop_file = f + break + if desktop_file == "": + for f in self.files: + if f.lower().startswith(wmclass.lower() + ".desktop"): + desktop_file = f + break if desktop_file == "": result = None