From 0a752eeb00c0f02ba21a0d7cb5503ed894699724 Mon Sep 17 00:00:00 2001 From: Botspot Date: Thu, 28 Jan 2021 08:49:58 -0600 Subject: [PATCH] Add pi-apps terminal command --- gui | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gui b/gui index 40ddaa2..0742002 100755 --- a/gui +++ b/gui @@ -12,7 +12,8 @@ echo '|‾‾‾‾\(‾) /‾\ | |‾) |‾| / ⧋ \ |‾'\''‾‾\|‾'\''‾‾\/‾‾‾| | ‾_/| | |‾‾‾| / ‾‾‾ \| |‾) | |‾) \ ‾‾\ |_|‾ |_| ‾‾‾ /_/‾‾‾\_\ .‾_/| .‾_/|‾‾ / - |_|‾ |_|‾ ‾‾‾' + |_|‾ |_|‾ ‾‾‾ +' #check for updates in background "${DIRECTORY}/updater" &>/dev/null & @@ -22,6 +23,14 @@ if [ ! -z "$1" ];then output="$1" fi +(if [ ! -f /usr/local/bin/pi-apps ] || ! grep -q /usr/local/bin/pi-apps "${DIRECTORY}/gui";then + rm /usr/local/bin/pi-apps + echo "#!/bin/bash +${DIRECTORY}/gui" | sudo tee /usr/local/bin/pi-apps >/dev/null + sudo chmod +x /usr/local/bin/pi-apps + echo "You can now run pi-apps in a terminal, just by running 'pi-apps'" +fi) & + #hide Chromium Widevine & Back to Chromium v78 on existing TwisterOS installs if [ -f "${DIRECTORY}/data/hidelist" ] || [ ! -d "${DIRECTORY}/data/categories" ];then "${DIRECTORY}/install"