Bugfix: when using the new FHS standard, /usr/games might not be

in the path anymore (e.g. certain suse versions), which means the
desktop files didn't work. Now the configured path is automatically
inserted into the desktop file.
Additional the categories was shortened.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1914 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-05-15 08:17:29 +00:00
parent 1038e43d9c
commit dc7384d034
2 changed files with 10 additions and 3 deletions

View File

@ -20,3 +20,9 @@ icondir = $(prefix)/share/pixmaps
icon_DATA = supertuxkart_32.xpm supertuxkart_64.xpm icon_DATA = supertuxkart_32.xpm supertuxkart_64.xpm
EXTRA_DIST = $(pkgdata_DATA) EXTRA_DIST = $(pkgdata_DATA)
# The desktop file needs the absolute path to the binary
# since e.g. /usr/games might not be in the standard path
supertuxkart.desktop: supertuxkart_desktop.template
cat supertuxkart_desktop.template | sed 's#BINDIR#@prefix@/games#' >supertuxkart.desktop

View File

@ -1,13 +1,14 @@
[Desktop Entry] [Desktop Entry]
Encoding=UTF-8 Encoding=UTF-8
Name=Supertuxkart Name=Supertuxkart
Version=0.5
Icon=supertuxkart_64.xpm Icon=supertuxkart_64.xpm
Comment=A kart racing game Comment=A kart racing game
Comment[fr_FR]=Un jeu de karting Comment[fr_FR]=Un jeu de karting
Comment[ro_RO]=Un joc de curse cu carturi Comment[ro_RO]=Un joc de curse cu carturi
Exec=supertuxkart --log=file Exec=/usr/games/supertuxkart --log=file
Terminal=false Terminal=false
StartupNotify=false StartupNotify=false
Type=Application Type=Application
TryExec=supertuxkart TryExec=BINDIR/supertuxkart
Categories=3DGraphics;Game;ActionGame;Simulation;SportsGame; Categories=Game;ArcadeGame