From 210d3d8fec49bddf883fc66a522dc61cdb28d5c8 Mon Sep 17 00:00:00 2001 From: Botspot Date: Sun, 1 Nov 2020 17:30:25 -0600 Subject: [PATCH] remove yad install dialog & hide scrcpy on TwisterOS --- install | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/install b/install index 49af83f..378c5fa 100755 --- a/install +++ b/install @@ -8,13 +8,16 @@ 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 --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." - - - sudo apt install -y yad + echo -n "YAD is required but not installed. Install now? [Y/n] " + read answer + if [ "$answer" == n ];then + error "User declined." + fi + if [ -f /usr/bin/apt ];then + sudo apt install -y yad + elif [ -f /usr/bin/pacman ];then + sudo pacman -S yad + fi fi #remove annoying YAD icon browser launcher @@ -73,6 +76,7 @@ Box86 Discord piKiss Retropie +Scrcpy Windows 10 Theme" >> "${DIRECTORY}/data/hidelist" fi