GNOME Bugzilla – Bug 667011
uppercase .desktop files are not matched by window tracker
Last modified: 2021-07-05 14:07:48 UTC
Maybe .desktop files are supposed to be lowercase anyway (https://live.gnome.org/GnomeShell/ApplicationBased says "should be lowercase"). But no doubt someone has made some which are not! I encountered this in bug #651510. I looked a bit deeper at the lowercase/uppercase thing in the code (shell-app-system.c). AFAICT, the foobar.desktop strings are stored in various hash tables which the lookups are done against. I see two possibilities: 1) convert to lowercase everywhere where items are put into these tables. 2) change the equality check function on the hash tables (i.e., something instead of g_str_equal()). I could try to do a patch but perhaps someone has a better feeling about what's right?
I'd say it's easier to convert everything to lowercase, as long as we don't need the case anywhere. But that's just my quick opinion. ;-) (A slightly more involved solution would allow distinguishing case difference when it matters: do a case-sensitive lookup, and if it fails, do a case-insensitive one. Not sure that's really worth it - it might even bring more confusion.)
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/ Thank you for your understanding and your help.