From a3543cd9955fc9e25246e8d37055953f50c5b51e Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 27 Oct 2010 21:42:52 +0200 Subject: [PATCH] put the pulseaudio detection in the .sh too --- xonotic-linux-glx.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xonotic-linux-glx.sh b/xonotic-linux-glx.sh index 02097049..03588c0c 100755 --- a/xonotic-linux-glx.sh +++ b/xonotic-linux-glx.sh @@ -118,4 +118,13 @@ case "$xserver" in ;; esac +# 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 + fi +fi + exec "$@" -- 2.39.2