Pi-Apps install script hide less apps on TwistOSlite

pull/516/head
Botspot 5 years ago
parent 5bec57bd1e
commit 23e9cb0eff

@ -122,11 +122,11 @@ cd $HOME
"${DIRECTORY}/etc/categoryedit" "template" 'hidden' >/dev/null "${DIRECTORY}/etc/categoryedit" "template" 'hidden' >/dev/null
#hide duplicates if running in twisteros #hide duplicates if running in twisteros
if [ -f /usr/local/bin/twistver ];then if [ -f /usr/local/bin/twistver ] && if [[ $(twistver) == "Twister OS version"* ]]; then
#twisteros full
PREIFS="$IFS" PREIFS="$IFS"
IFS=$'\n' IFS=$'\n'
apps="Chromium Media Edition apps="CommanderPi
CommanderPi
Box86 Box86
Discord Discord
piKiss piKiss
@ -135,13 +135,43 @@ Scrcpy
Steam Steam
Windows 10 Theme Windows 10 Theme
Chromium Widevine Chromium Widevine
Back to Chromium v78
Lightpad Lightpad
Wine (x86) Wine (x86)
Mac OS Theme" Mac OS Theme"
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
#unhide chromiumv78 on twisteros
"${DIRECTORY}/etc/categoryedit" 'Back to Chromium v78' >/dev/null
echo "Finished hiding apps on TwisterOS."
elif [ -f /usr/local/bin/twistver ] && if [[ $(twistver) != "Twister OS version"* ]]; then
#twisteros lite
PREIFS="$IFS"
IFS=$'\n'
apps="Chromium Widevine
Box86
Windows 10 Theme
Lightpad
Wine (x86)
Mac OS Theme"
for app in $apps ;do
"${DIRECTORY}/etc/categoryedit" "$app" 'hidden' >/dev/null
done
#unhide some apps on twisteros lite that were hidden.
#This moves these apps to the '' category, which will be reset next time pi-apps launches
"${DIRECTORY}/etc/categoryedit" CommanderPi >/dev/null
"${DIRECTORY}/etc/categoryedit" Discord >/dev/null
"${DIRECTORY}/etc/categoryedit" piKiss >/dev/null
"${DIRECTORY}/etc/categoryedit" Scrcpy >/dev/null
"${DIRECTORY}/etc/categoryedit" Steam >/dev/null
"${DIRECTORY}/etc/categoryedit" 'Chromium Widevine' >/dev/null
"${DIRECTORY}/etc/categoryedit" 'Back to Chromium v78' >/dev/null
echo "Finished hiding apps on TwisterOS." echo "Finished hiding apps on TwisterOS."
fi fi

Loading…
Cancel
Save