X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=blobdiff_plain;f=usr_bin%2Fgrml-info;h=001734435c9a180cf9976e3e6dd920928b5e1a5f;hp=1f31776cd3b61d3e19bd0571efc9a63cf4d26504;hb=749ee8e3462c2e794f4a8b5d88c38ed838987b09;hpb=5b25de768269619f8414412761685558a404c863 diff --git a/usr_bin/grml-info b/usr_bin/grml-info index 1f31776..0017344 100755 --- a/usr_bin/grml-info +++ b/usr_bin/grml-info @@ -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?