Have "make install" act more as expected for a desktop application

I'm trying to get subsurface to get closer to becoming a "regular desktop
application"; so far this is based on the recommendations and guidelines
on OpenSUSE and Fedora.

The icon is now named subsurface.svg and make install installs it in the
correct location. At runtime subsurface first checks if an icon is
installed and if it is it uses that - otherwise it falls back to the old
code that tries to read the svg file from the current directory.

We also install a subsurface.desktop file

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2011-10-11 15:58:38 -07:00
parent 089ab5e97c
commit 7df7518625
4 changed files with 50 additions and 6 deletions

10
subsurface.desktop Normal file
View file

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=subsurface
GenericName=dive log program
Comment=manage and display dive computer data
Icon=subsurface
Exec=subsurface
Terminal=false
Categories=Accessories;