From: Rudolf Polzer Date: Wed, 27 Oct 2010 19:42:52 +0000 (+0200) Subject: put the pulseaudio detection in the .sh too X-Git-Tag: xonotic-v0.1.0preview~109 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a3543cd9955fc9e25246e8d37055953f50c5b51e;p=xonotic%2Fxonotic.git put the pulseaudio detection in the .sh too --- 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 "$@"