]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
put the pulseaudio detection in the .sh too
authorRudolf Polzer <divverent@alientrap.org>
Wed, 27 Oct 2010 19:42:52 +0000 (21:42 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 27 Oct 2010 19:42:52 +0000 (21:42 +0200)
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 "$@"