Consistent ordering for update-desktop-database
Submitted by swo..@..ol.com
Assigned to Hans Petter Jansson @hpj
Description
I'm using desktop-file-utils 0.22 and the manpage for update-desktop-database contains the following:
"The order of the desktop files found for a MIME type is not significant. Therefore, an external mechanism must be used to determine what is the preferred desktop file for a MIME type."
It is not unlikely that an application will use the first desktop entry in the mime database if a related entry in [Default Applications] is not set. In the worst case this means 2 systems with the same desktop files could generate different cached mime database which could result in different default desktop entries used for some applications. Maybe it would be useful if a sorting here is guaranteed. A simple sorting by filename or something else should not hurt.