Skip to content

Commit

Permalink
grml-info: drop support for deprecated gdialog and prefer zenity over…
Browse files Browse the repository at this point in the history
… Xdialog

gdialog is a wrapper around zenity and deprecated, so let's get rid of
it. Also prefer zenity over Xdialog, since the former is better looking.
  • Loading branch information
mika committed Jul 19, 2020
1 parent 5b25de7 commit 749ee8e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions usr_bin/grml-info
Expand Up @@ -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?
Expand Down

0 comments on commit 749ee8e

Please sign in to comment.