-if [ -n "$DISPLAY" ]; then
- if check4progs dillo ; then
- dillo $PAGE
- elif check4progs xlinks2 ; then
- xlinks2 -mode 640x480 $PAGE
- elif check4progs firefox ; then
- firefox $PAGE
- elif check4progs x-www-browser ; then
- x-www-browser $PAGE
- elif check4progs Xdialog ; then
- Xdialog --msgbox "Sorry, no usable X browser found." 0 0
+if [ -n "$DISPLAY" ] ; then
+ if check4progs dillo &>/dev/null ; then
+ dillo $PAGE
+ elif check4progs xlinks2 &>/dev/null ; then
+ xlinks2 -mode 640x480 $PAGE
+ elif check4progs firefox &>/dev/null ; then
+ firefox $PAGE
+ elif check4progs x-www-browser &>/dev/null ; then
+ x-www-browser $PAGE
+ 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