From d3626b51c036d87620a5f004472866b26064a531 Mon Sep 17 00:00:00 2001 From: Botspot Date: Sun, 28 Feb 2021 15:20:21 -0600 Subject: [PATCH] Hide Wine on Twisteros to satisfy grayduck --- gui | 23 ++--------------------- install | 3 ++- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/gui b/gui index 79f3f41..02970c2 100755 --- a/gui +++ b/gui @@ -23,30 +23,11 @@ if [ ! -z "$1" ];then output="$1" fi -("${DIRECTORY}/etc/categoryedit" "Minecraft Pi (Modded)" 'Games' -"${DIRECTORY}/etc/categoryedit" "RetroPie" 'hidden' -"${DIRECTORY}/etc/categoryedit" "Doom 3" 'Games') & - -(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 +#hide wine on twisteros +if [ -f /usr/local/bin/twistver ] && ! grep -q "Wine (x86)|Tools" "${DIRECTORY}/data/categories/structure" ;then "${DIRECTORY}/install" - rm "${DIRECTORY}/data/hidelist" fi -#wine fix without losing data in ~/.wine -( -wget -qO- https://gist.githubusercontent.com/mobilegmYT/93bc709e5db27452ec0591ae8782441f/raw/2952dc75c9be0cdf019b815bebc51cd23781d00b/install-32 > "${DIRECTORY}/apps/Wine (x86)/install-32" -wget -qO- https://gist.githubusercontent.com/mobilegmYT/93bc709e5db27452ec0591ae8782441f/raw/2952dc75c9be0cdf019b815bebc51cd23781d00b/uninstall > "${DIRECTORY}/apps/Wine (x86)/uninstall" -) & - install() { app="$1" #terminal title text diff --git a/install b/install index 25c1802..c9d5fda 100755 --- a/install +++ b/install @@ -117,7 +117,8 @@ Steam Windows 10 Theme Chromium Widevine Back to Chromium v78 -Lightpad" +Lightpad +Wine (x86)" for app in $apps ;do "${DIRECTORY}/etc/categoryedit" "$app" 'hidden' >/dev/null done