From: Rudolf Polzer Date: Wed, 29 Sep 2010 13:17:08 +0000 (+0200) Subject: auto start X server when needed X-Git-Tag: xonotic-v0.1.0preview~173 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4bb12ab80890b67e309615ea4ca7e76073e73071;p=xonotic%2Fxonotic.git auto start X server when needed --- diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index 9a5be4eb..c2bee5ba 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -190,7 +190,11 @@ screenshotthemap() rm -rf ~/.xonotic ( cd ../.. - misc/tools/xonotic-map-screenshot "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" + if [ -n "$DISPLAY" ]; then + misc/tools/xonotic-map-screenshot "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" + else + startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" -- :8 + fi ) if ! mv ~/.xonotic/data/screenshots "$M-$blobhash"; then if [ -n "$IRCSPAM" ]; then