From 46230e2a81825f9765beda2993abfb923217687d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 14 May 2014 13:41:33 +0200 Subject: [PATCH] condense into one graphical crash dialog make it more robust against missing dependencies --- error-dialog.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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