diff --git a/error-dialog.sh b/error-dialog.sh index 9fd72ec12d..371ea3f178 100755 --- a/error-dialog.sh +++ b/error-dialog.sh @@ -1,11 +1,3 @@ #!/bin/sh - -zenity --error --title "OpenRA" --text "OpenRA has encountered a fatal error." - -zenity --question --title "OpenRA" --text="Would you like have a look at the crash log files?" || exit - -xdg-open ~/.openra/Logs - -zenity --question --title "OpenRA" --text="Would you like to read the FAQ?" || exit - -xdg-open https://github.com/OpenRA/OpenRA/wiki/FAQ \ No newline at end of file +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 \ No newline at end of file