6 [ -n "${link}" ] && path=`dirname "${link}"`
15 x86_64) arch="linux64" ;;
19 xonotic="xonotic-${arch}-${mode}"
21 set -- ./${xonotic} "${@}"
39 xserver="${VALUE%%/*}"
45 # now how do we execute it?
46 if [ -r ~/.xonotic/data/config.cfg ]; then
47 while read -r CMD KEY VALUE; do
53 done < ~/.xonotic/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 Xonotic on already existing display :$xserver"
93 set -- startx "$@" -fullscreen -- ":$xserver"
94 msg=$msg$lf"- Running Xonotic 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 ~/.xonotic/data/config.cfg and remove the line"
115 echo "starting with 'seta vid_x11_display'."