From 37ba76c6b924c3ce4268f61936c3ed5a0817c5ca Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 27 May 2020 00:55:34 +1000 Subject: [PATCH] Add -nocrashdialog to scripts that automate a game session, to ensure they are not stopped by a popup error message --- misc/tools/demopacker.sh | 2 +- misc/tools/the-big-benchmark/the-big-benchmark.sh | 2 +- misc/tools/xonotic-map-screenshot | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/tools/demopacker.sh b/misc/tools/demopacker.sh index 068478ac..9b424226 100755 --- a/misc/tools/demopacker.sh +++ b/misc/tools/demopacker.sh @@ -8,7 +8,7 @@ demobase=${demo##*/} cp "$demo" data/"$demobase" -USE_RLWRAP=no strace -qo strace.txt -f -e trace=open ./all run -nohome -readonly -forceqmenu -window "$@" -demo "$demobase" +USE_RLWRAP=no strace -qo strace.txt -f -e trace=open ./all run -nohome -readonly -forceqmenu -window -nocrashdialog "$@" -demo "$demobase" allfiles() { diff --git a/misc/tools/the-big-benchmark/the-big-benchmark.sh b/misc/tools/the-big-benchmark/the-big-benchmark.sh index 580e4dbb..afaf50ae 100755 --- a/misc/tools/the-big-benchmark/the-big-benchmark.sh +++ b/misc/tools/the-big-benchmark/the-big-benchmark.sh @@ -38,7 +38,7 @@ if [ -f ./all ]; then ./all clean -fU -m -r ./all compile export USE_GDB=no - set -- ./all run "$@" + set -- ./all run -nocrashdialog "$@" elif [ -z "$*" ]; then case "`uname`" in Darwin) diff --git a/misc/tools/xonotic-map-screenshot b/misc/tools/xonotic-map-screenshot index 1d578887..f4324c14 100755 --- a/misc/tools/xonotic-map-screenshot +++ b/misc/tools/xonotic-map-screenshot @@ -9,6 +9,7 @@ dummy=$1; shift count=`yes x | head -n "$count" | tr -cd x` ./all run \ + -nocrashdialog \ -nosound \ -noconfig \ +'locksession 0' \ -- 2.39.2