X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=blobdiff_plain;f=voretournament-linux-glx.sh;h=a0b4f3a7c2ae3a9a877f3e3a9475c2b8ab070214;hp=b5b05c35b75edd1af1f820d568766179c3244624;hb=71c85af29fb024d5657f383c6e6f33720cd2c25e;hpb=cc148bf19700d380a18d7f51a706f9bbe959811b diff --git a/voretournament-linux-glx.sh b/voretournament-linux-glx.sh index b5b05c35..a0b4f3a7 100644 --- a/voretournament-linux-glx.sh +++ b/voretournament-linux-glx.sh @@ -12,11 +12,11 @@ case "${0##*/}" in esac case "$(uname -m)" in - x86_64) arch="x86_64" ;; - *) arch="686" ;; + x86_64) arch="linux64" ;; + *) arch="linux32" ;; esac -voretournament="voretournament-linux-${arch}-${mode}" +voretournament="voretournament-${arch}-${mode}" set -- ./${voretournament} "${@}" @@ -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 "$@"