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