saveSync workarounds

This commit is contained in:
Rodrigo 2022-09-11 02:43:57 +02:00
parent 788120adc9
commit 093b00b5b1
2 changed files with 38 additions and 35 deletions

View file

@ -577,13 +577,6 @@ fi
createDesktopIcons
if [[ ! $branch == "main" ]]; then
if [[ $doSetupSaveSync == "true" ]]; then
xdg-open $HOME/EmuDeckSaveSync.desktop
fi
fi
#
##
@ -610,6 +603,16 @@ checkBIOS
# fi
# fi
#SaveSync
# if [[ ! $branch == "main" ]]; then
# if [[ $doSetupSaveSync == "true" ]]; then
#
# $HOME/Desktop/EmuDeckSaveSync.desktop
#
# fi
# fi
#EmuDeck updater on gaming Mode
mkdir -p "${toolsPath}/updater"
cp -v "$EMUDECKGIT/tools/updater/emudeck-updater.sh" "${toolsPath}/updater/"

View file

@ -10,33 +10,6 @@ source $HOME/emudeck/backend/functions/all.sh
source "/home/deck/emudeck/backend/functions/all.sh"
if [[ $doSetupSaveSync == "true" ]]; then
cloudProviders=()
cloudProviders+=(1 "gdrive")
cloudProviders+=(2 "dropbox")
cloudProviders+=(3 "onedrive")
cloudProviders+=(4 "box")
cloudProviders+=(5 "nextcloud")
syncProvider=$(zenity --list \
--title="EmuDeck SaveSync Host" \
--height=500 \
--width=500 \
--ok-label="OK" \
--cancel-label="Exit" \
--text="Choose the service you would like to use to host your cloud saves.\n\nKeep in mind they can take a fair amount of space.\n\nThis will open a browser window for you to sign into your chosen cloud provider." \
--radiolist \
--column="Select" \
--column="Provider" \
"${cloudProviders[@]}" 2>/dev/null)
if [[ -n "$syncProvider" ]]; then
SAVESYNC_install
SAVESYNC_setup "$syncProvider"
fi
fi
SAVESYNC_install(){
@ -89,4 +62,31 @@ SAVESYNC_createService(){
echo "Starting SaveSync Service. First run may take a while."
systemctl --user start emudeck_savesync.service
}
}
if [[ $doSetupSaveSync == "true" ]]; then
cloudProviders=()
cloudProviders+=(1 "gdrive")
cloudProviders+=(2 "dropbox")
cloudProviders+=(3 "onedrive")
cloudProviders+=(4 "box")
cloudProviders+=(5 "nextcloud")
syncProvider=$(zenity --list \
--title="EmuDeck SaveSync Host" \
--height=500 \
--width=500 \
--ok-label="OK" \
--cancel-label="Exit" \
--text="Choose the service you would like to use to host your cloud saves.\n\nKeep in mind they can take a fair amount of space.\n\nThis will open a browser window for you to sign into your chosen cloud provider." \
--radiolist \
--column="Select" \
--column="Provider" \
"${cloudProviders[@]}" 2>/dev/null)
if [[ -n "$syncProvider" ]]; then
SAVESYNC_install
SAVESYNC_setup "$syncProvider"
fi
fi