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)").
This commit is contained in:
sankalp committed 2026-08-16 22:30:09 +05:45
1 parent f31c6df8db
commit 41c57d6996
1 file changed
+6
+6
View File
@@ -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