]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - xonotic-linux-glx.sh
map compiler: -minimap: work better with mapinfo bounds and -scale
[xonotic/xonotic.git] / xonotic-linux-glx.sh
index 020970497116e080a5a0946a88473139f953b8cd..03588c0c1d1b4f7922bb10cbecc96c33e0000424 100755 (executable)
@@ -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 "$@"