Hide Wine on Twisteros to satisfy grayduck

pull/407/head
Botspot 5 years ago
parent 0dcc7d13b2
commit d3626b51c0

23
gui

@ -23,30 +23,11 @@ if [ ! -z "$1" ];then
output="$1" output="$1"
fi fi
("${DIRECTORY}/etc/categoryedit" "Minecraft Pi (Modded)" 'Games' #hide wine on twisteros
"${DIRECTORY}/etc/categoryedit" "RetroPie" 'hidden' if [ -f /usr/local/bin/twistver ] && ! grep -q "Wine (x86)|Tools" "${DIRECTORY}/data/categories/structure" ;then
"${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
"${DIRECTORY}/install" "${DIRECTORY}/install"
rm "${DIRECTORY}/data/hidelist"
fi 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() { install() {
app="$1" app="$1"
#terminal title text #terminal title text

@ -117,7 +117,8 @@ Steam
Windows 10 Theme Windows 10 Theme
Chromium Widevine Chromium Widevine
Back to Chromium v78 Back to Chromium v78
Lightpad" Lightpad
Wine (x86)"
for app in $apps ;do for app in $apps ;do
"${DIRECTORY}/etc/categoryedit" "$app" 'hidden' >/dev/null "${DIRECTORY}/etc/categoryedit" "$app" 'hidden' >/dev/null
done done

Loading…
Cancel
Save