Comment 24 for bug 635223

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

You're right Adam. You got me there. I have actually never noticed that particular paragraph in the spec before :-) Thanks for digging into this!

It is, however, a pretty nasty part of the spec since it requires excessive stat()ing of files. Consider:

  /home/kamstrup/.local/share/applications/wine-Programs-Songbird-Songbird (Profile Manager).desktop

This maps down to 2^3=8 possible paths the .desktop file could live under (all permutations of - and /) since '-' is also a legal character in a desktop file id (consider gnome-power-preferences.desktop).

To make matters slightly ridiculous: If I had a file /usr/share/applications/gnome/power/preferences.desktop, and that file was included from an <AppDir> element at any later point in the .menu file than gnome-power-preferences.desktop; then the spec tells us that this file (preferences.desktop) takes precedence over gnome-power-preferences.desktop. Go figure :-)

Nonetheless we need to look into this for Natty. If we can make it work with Wine programs across the stack we could consider an SRU for Maverick, but to be honest I fear that these changes have non-trivial ramifications.