The XDG spec allows for software to specify how it is executed and
presented in a graphical environment by using a desktop file
http://standards.freedesktop.org/desktop-entry-spec/latest/
This version is taken from my Debian packaging but should be useful
for other operating systems.