condense into one graphical crash dialog

make it more robust against missing dependencies
This commit is contained in:
Matthias Mailänder
2014-05-14 13:41:33 +02:00
parent bae47ff3c9
commit 46230e2a81

View File

@@ -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
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