How to manage app's own version and display name?
I'm about to finish my first Sailfish OS app, and bumped into an issue that works quite smoothly on other platforms (green robot, Tizen, etc) I need to show my app's own display name and version number on the About page, and also use them in case the user wants to send an email via my app. I've tried to use QGuiApplication.applicationName, applicationDisplayName and applicationVersion, but they don't contain the expected information. applicationName and applicationDisplayName both contains the same string "harbour-MY_APP_NAME", instead of the display name I've specified in the .desktop file. And applicationVersion is empty.
As far as I can tell, I can specify the display name in the .desktop file, but how can I parse the .desktop file from my app? And I can put the version number in the .spec file, but how to parse it from the app?