Comment 2 for bug 723604

Revision history for this message
Olivier Tilloy (osomon) wrote :

The cause of the problem is not in the backends (place daemons, libdee, …), but in Unity-2d itself.

For e.g. SearchAndRescue, the backend correctly return "application://SearchAndRescue.desktop" for the desktop file name. However, at the QML level, this value is assigned to a property with type url (QUrl), and this is where the case is lost. According to the documentation (http://doc.qt.nokia.com/latest/qurl.html#FormattingOption-enum):

« Note that the case folding rules in Nameprep, which QUrl conforms to, require host names to always be converted to lower case, regardless of the Qt::FormattingOptions used. »

In this case, "application" is the scheme and "SearchAndRescue.desktop" is considered as the host name, thus being converted to lower case.

This can be fixed by changing the type of the property to string instead of url.