Correct the crash dialog title
This commit is contained in:
committed by
Oliver Brakmann
parent
376ed15079
commit
b00423dc76
@@ -37,9 +37,9 @@ if [ $? != 0 ] && [ $? != 1 ]; then
|
|||||||
test -d Support/Logs && LOGS="${PWD}/Support/Logs"
|
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"
|
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
|
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
|
elif command -v kdialog > /dev/null; then
|
||||||
kdialog --title "{MODNAME}" --error "${ERROR_MESSAGE}"
|
kdialog --title "OpenRA" --error "${ERROR_MESSAGE}"
|
||||||
else
|
else
|
||||||
printf "%s\n" "${ERROR_MESSAGE}"
|
printf "%s\n" "${ERROR_MESSAGE}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user