diff --git a/launch-game.sh b/launch-game.sh index 090f030f69..6b73263d68 100755 --- a/launch-game.sh +++ b/launch-game.sh @@ -1,3 +1,9 @@ #!/bin/sh # launch script (executed by Desura) -exec mono OpenRA.Game.exe Server.Dedicated=False Server.DedicatedLoop=False "$@" \ No newline at end of file +mono OpenRA.Game.exe Server.Dedicated=False Server.DedicatedLoop=False "$@" +if [ $? != 0 ] +then + ZENITY=`which zenity` || echo "OpenRA needs zenity installed to display a graphical error dialog. See ~/.openra. for log files." + $ZENITY --question --title "OpenRA" --text "OpenRA has encountered a fatal error.\nLog Files are available in ~/.openra." --ok-label "Quit" --cancel-label "View FAQ" || xdg-open https://github.com/OpenRA/OpenRA/wiki/FAQ + exit 1 +fi \ No newline at end of file