From 749ee8e3462c2e794f4a8b5d88c38ed838987b09 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 19 Jul 2020 17:53:57 +0200 Subject: [PATCH] grml-info: drop support for deprecated gdialog and prefer zenity over 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. --- usr_bin/grml-info | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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? -- 2.1.4