After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 667011 - uppercase .desktop files are not matched by window tracker
uppercase .desktop files are not matched by window tracker
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
triaged
Depends on:
Blocks:
 
 
Reported: 2011-12-30 00:17 UTC by Colin Macdonald
Modified: 2021-07-05 14:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Colin Macdonald 2011-12-30 00:17:51 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?
Comment 1 Milan Bouchet-Valat 2011-12-30 09:49:12 UTC
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.)
Comment 2 GNOME Infrastructure Team 2021-07-05 14:07:48 UTC
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.