grml-info: drop support for deprecated gdialog and prefer zenity over Xdialog
[grml-scripts.git] / usr_bin / grml-info
index 1f31776..0017344 100755 (executable)
@@ -29,15 +29,12 @@ if [ -n "$DISPLAY" ] ; then
      firefox $PAGE
    elif check4progs x-www-browser &>/dev/null ; then
      x-www-browser $PAGE
+   elif check4progs zenity &>/dev/null ; then
+     zenity --no-wrap --error --text="Sorry, no usable X browser (dillo, xlinks2, firefox,...) found."
+     exit 1
    elif check4progs Xdialog &>/dev/null ; then
      Xdialog --msgbox "Sorry, no usable X browser (dillo, xlinks2, firefox,...) found." 0 0
      exit 1
-   elif check4progs gdialog &>/dev/null ; then
-     gdialog --msgbox "Sorry, no usable X browser (dillo, xlinks2, firefox,...) found." 0 0
-     exit 1
-   elif check4progs zenity &>/dev/null ; then
-     zenity --info --text="Sorry, no usable X browser (dillo, xlinks2, firefox,...) found."
-     exit 1
    fi
 else # no X:
    # do we have a real console?