add the zenity crash dialog to the Desura scripts
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# launch script (executed by Desura)
|
# launch script (executed by Desura)
|
||||||
exec mono OpenRA.Game.exe Server.Dedicated=False Server.DedicatedLoop=False "$@"
|
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
|
||||||
Reference in New Issue
Block a user