improve generated desktop file

with this patches it should be possible to install the cmake generated desktop file.

NOTE: this is a candidate for the stable branch