There's recently been another bug report from an Ubuntu user about the 0ad.sh wrapper script not being able to find pyrogenesis if /usr/games isn't in the user's path, i.e. https://bugs.launchpad.net/bugs/1380737. It's not ideal, but I've gone ahead and hardcoded the path in the 0ad packages in Debian/Ubuntu:
--- 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