-# if pulseaudio
-if [ -z "$SDL_AUDIODRIVER" ]; then
- if ps -C pulseaudio >/dev/null; then
- if ldd /usr/lib/libSDL.so 2>/dev/null | grep pulse >/dev/null; then
- export SDL_AUDIODRIVER=pulse
- fi
+if which "$1" > /dev/null
+then
+ exec "$@"
+else
+ echo "Could not find $1 to exec"
+ if [ "$arch" = "local" ]
+ then
+ printf "%b\n%b\n" "Xonotic does not currently provide pre-built $(uname):$(uname -m) builds, please compile one using make" \
+ "More info is available at \e[1;36mhttps://gitlab.com/xonotic/xonotic/-/wikis/Compiling\e[m"