1
0
forked from 0ad/0ad

Remove hardcoding of path from desktop file and launcher script. Patch by vincent. Fixes #1424.

This was SVN commit r13365.
This commit is contained in:
leper 2013-04-21 16:47:36 +00:00
parent 75f332ce20
commit 3758b64916
2 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,7 @@ Version=1.0
Name=0 A.D.
Comment=A real-time strategy game of ancient warfare
Comment[it]=Videogioco strategico in tempo reale di guerre antiche
Exec=/usr/bin/0ad
Exec=0ad
Icon=0ad
Terminal=false
Type=Application

View File

@ -1,3 +1,9 @@
#!/bin/sh
/usr/bin/pyrogenesis "$@"
pyrogenesis=$(which pyrogenesis 2> /dev/null)
if [ -x "$pyrogenesis" ] ; then
"$pyrogenesis" "$@"
else
echo "Error: pyrogenesis not found in ($PATH)"
exit 1
fi