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:
parent
1038e43d9c
commit
dc7384d034
@ -20,3 +20,9 @@ icondir = $(prefix)/share/pixmaps
|
||||
icon_DATA = supertuxkart_32.xpm supertuxkart_64.xpm
|
||||
|
||||
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
|
@ -1,13 +1,14 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Supertuxkart
|
||||
Version=0.5
|
||||
Icon=supertuxkart_64.xpm
|
||||
Comment=A kart racing game
|
||||
Comment[fr_FR]=Un jeu de karting
|
||||
Comment[ro_RO]=Un joc de curse cu carturi
|
||||
Exec=supertuxkart --log=file
|
||||
Exec=/usr/games/supertuxkart --log=file
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Type=Application
|
||||
TryExec=supertuxkart
|
||||
Categories=3DGraphics;Game;ActionGame;Simulation;SportsGame;
|
||||
TryExec=BINDIR/supertuxkart
|
||||
Categories=Game;ArcadeGame
|
Loading…
Reference in New Issue
Block a user