6 [ -n "${link}" ] && path=`dirname "${link}"`
15 x86_64) arch="linux64" ;;
19 voretournament="voretournament-${arch}-${mode}"
21 set -- ./${voretournament} "${@}"
39 xserver="${VALUE%%/*}"
45 # now how do we execute it?
46 if [ -r ~/.voretournament/data/config.cfg ]; then
47 while read -r CMD KEY VALUE; do
53 done < ~/.voretournament/data/config.cfg
62 0:+vid_x11_display\ *)
63 setdisplay "${X#+vid_x11_display }"
78 echo "Not using display ':$xserver': evil characters"
86 # check for a listening X server on that socket
87 if netstat -nl | grep -F " /tmp/.X11-unix/X$xserver" >/dev/null; then
88 # X server already exists
89 export DISPLAY=:$xserver
90 prefix="DISPLAY=:$xserver "
91 msg=$msg$lf"- Running VoreTournament on already existing display :$xserver"
93 set -- startx "$@" -fullscreen -- ":$xserver"
94 msg=$msg$lf"- Running VoreTournament on a newly created X server :$xserver."
99 echo >&2 "Not using layout '$xlayout': evil characters"
103 set -- "$@" -layout "$xlayout"
104 msg=$msg$lf"- Using the ServerLayout section named $xlayout."
109 echo "X SERVER OVERRIDES IN EFFECT:$msg"
111 echo "Resulting command line:"
114 echo "To undo these overrides, edit ~/.voretournament/data/config.cfg and remove the line"
115 echo "starting with 'seta vid_x11_display'."
122 if [ -z "$SDL_AUDIODRIVER" ]; then
123 if ps -C pulseaudio >/dev/null; then
124 if ldd /usr/lib/libSDL.so 2>/dev/null | grep pulse >/dev/null; then
125 export SDL_AUDIODRIVER=pulse