Show a python GTK3 dialog if zenity is missing.

This commit is contained in:
Paul Chote
2018-07-01 16:51:51 +00:00
parent 29442cec13
commit 01a613a057
4 changed files with 61 additions and 5 deletions

View File

@@ -44,6 +44,8 @@ if [ $? != 0 ] && [ $? != 1 ]; then
zenity --no-wrap --error --title "{MODNAME}" --text "${ERROR_MESSAGE}" 2> /dev/null
elif command -v kdialog > /dev/null; then
kdialog --title "{MODNAME}" --error "${ERROR_MESSAGE}"
elif "${HERE}/gtk-dialog.py" test > /dev/null; then
"${HERE}/gtk-dialog.py" error --title "{MODNAME}" --text "${ERROR_MESSAGE}" 2> /dev/null
else
printf "${ERROR_MESSAGE}\n"
fi