From 4d9059f8311c0afec7b3a0f030d9f9274d4d18f4 Mon Sep 17 00:00:00 2001 From: Botspot Date: Sat, 3 Oct 2020 13:33:39 -0500 Subject: [PATCH] Improve Zenity - no icon, no list mode --- install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install b/install index d6d3c3b..20edda9 100755 --- a/install +++ b/install @@ -8,10 +8,10 @@ function error { DIRECTORY="$(readlink -f "$(dirname "$0")")" if [ -z "$(dpkg-query -W --showformat='${Status}\n' yad 2>/dev/null | grep "install ok installed")" ];then - zenity --title='Pi-Apps' --window-icon="${DIRECTORY}/icons/logo.png" \ - --list --text="YAD is required but not installed. \n Install now?" \ - --ok-label=Yes --cancel-label=No \ - --column=foo --hide-header 2>/dev/null || error "User declined." + zenity --question --title='Pi-Apps' --window-icon="${DIRECTORY}/icons/logo.png" \ + --text="YAD is required but not installed. Install now?" \ + --ok-label=Yes --cancel-label=No --ellipsize --icon-name='' \ + 2>/dev/null || error "User declined." lxterminal --title="Installing YAD" -e "sudo apt install -y yad;echo -e '\nClosing in 5 seconds.';sleep 5"