X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=xonotic-linux-glx.sh;h=03588c0c1d1b4f7922bb10cbecc96c33e0000424;hp=020970497116e080a5a0946a88473139f953b8cd;hb=1ae8075e8fcd2e993260ed99b1d02e55f29c63cd;hpb=1dc9da72f606877f3403a38fad1c2e40edefabc3 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 "$@"