From ef1322659e29a435da410d51ef6655c2d1c23bf4 Mon Sep 17 00:00:00 2001 From: Vincent Cheng Date: Sun, 8 Jan 2023 08:21:57 +0000 Subject: [PATCH] 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 --- build/resources/0ad.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2