From: Vincent Cheng Date: Mon, 28 Mar 2022 11:29:22 +0000 (+0100) Subject: Fix search path for pyrogenesis X-Git-Tag: archive/raspbian/0.0.25b-2+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=86ebd68945d561b06f222ba93ff2a532e1accb6f;p=0ad.git Fix search path for pyrogenesis Forwarded: http://trac.wildfiregames.com/ticket/1424 Bug-Debian: https://bugs.debian.org/679033 Bug-Ubuntu: https://bugs.launchpad.net/bugs/1380737 Last-Update: 2014-10-13 Modify launcher script to execute /usr/games/pyrogenesis if /usr/games is not in the user's $PATH. Gbp-Pq: Name fix-bindir.patch --- diff --git a/build/resources/0ad.sh b/build/resources/0ad.sh index 944f8c3..594a12e 100644 --- a/build/resources/0ad.sh +++ b/build/resources/0ad.sh @@ -3,6 +3,9 @@ pyrogenesis=$(which pyrogenesis 2> /dev/null) if [ -x "$pyrogenesis" ] ; then "$pyrogenesis" "$@" +elif [ -x /usr/games/pyrogenesis ] ; then + # Fallback in case /usr/games is not in $PATH; see #679033 and LP: #1380737 + /usr/games/pyrogenesis "$@" else echo "Error: pyrogenesis not found in ($PATH)" exit 1