From 6808d5bd79ba396b2a1d02bf7957cab12aa0511b Mon Sep 17 00:00:00 2001 From: Botspot Date: Mon, 9 Nov 2020 14:56:14 -0600 Subject: [PATCH] hide widevine and chromium v78 for old installs --- gui | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/gui b/gui index ddaa624..3f30c92 100755 --- a/gui +++ b/gui @@ -11,20 +11,21 @@ function error { #check for updates in background ("${DIRECTORY}/updater" 1>/dev/null) & -(if [ ! -f ~/.config/autostart/pi-apps-updater.desktop ];then - "${DIRECTORY}/install" -fi) & - -#refresh settings if analytics file missing -(if [ ! -f "${DIRECTORY}/data/settings/Enable analytics" ];then - "${DIRECTORY}/settings" refresh -fi) & - #Variable 1 is used to view the details of the specified app if [ ! -z "$1" ];then output="$1" fi +#hide Chromium Widevine & Back to Chromium v78 on existing TwisterOS installs +(if [ -f /usr/local/bin/twistver ];then + echo -e "Chromium Widevine\nBack to Chromium v78" >> "${DIRECTORY}/data/hidelist" +fi + +#prettify hidelist file +hidelist="$(cat "${DIRECTORY}/data/hidelist" | sort | uniq | sed '/^[[:space:]]*$/d')" +echo "$hidelist" > "${DIRECTORY}/data/hidelist" +) & + install() { app="$1" #terminal title text