Correct the crash dialog title

This commit is contained in:
abcdefg30
2020-07-03 00:09:02 +02:00
committed by Oliver Brakmann
parent 376ed15079
commit b00423dc76

View File

@@ -37,9 +37,9 @@ if [ $? != 0 ] && [ $? != 1 ]; then
test -d Support/Logs && LOGS="${PWD}/Support/Logs"
ERROR_MESSAGE="OpenRA has encountered a fatal error.\nPlease refer to the crash logs and FAQ for more information.\n\nLog files are located in ${LOGS}\nThe FAQ is available at http://wiki.openra.net/FAQ"
if command -v zenity > /dev/null; then
zenity --no-wrap --error --title "{MODNAME}" --text "${ERROR_MESSAGE}" 2> /dev/null
zenity --no-wrap --error --title "OpenRA" --text "${ERROR_MESSAGE}" 2> /dev/null
elif command -v kdialog > /dev/null; then
kdialog --title "{MODNAME}" --error "${ERROR_MESSAGE}"
kdialog --title "OpenRA" --error "${ERROR_MESSAGE}"
else
printf "%s\n" "${ERROR_MESSAGE}"
fi