STEAM_SYNC: fix framwork was shutting down before steam_sync

This commit is contained in:
XargonWan 2024-09-08 10:32:33 +09:00
parent 31dbca315d
commit ef58758101

View file

@ -880,14 +880,12 @@ release_selector() {
quit_retrodeck() { quit_retrodeck() {
log i "Quitting ES-DE" log i "Quitting ES-DE"
pkill -f "es-de" pkill -f "es-de"
log i "Shutting down RetroDECK's framework"
pkill -f "retrodeck"
# if steam sync is on do the magic # if steam sync is on do the magic
if [[ $steam_sync == "true" ]]; then if [[ $steam_sync == "true" ]]; then
( (
source /app/libexec/steam_sync.sh source /app/libexec/steam_sync.sh
addToSteam "$(ls "$rdhome/ES-DE/gamelists/")" add_to_steam "$(ls "$rdhome/ES-DE/gamelists/")"
) | ) |
zenity --progress \ zenity --progress \
--title="Syncing with Steam" \ --title="Syncing with Steam" \
@ -898,6 +896,8 @@ quit_retrodeck() {
--auto-close \ --auto-close \
--auto-kill --auto-kill
fi fi
log i "Shutting down RetroDECK's framework"
pkill -f "retrodeck"
log i "See you next time" log i "See you next time"
} }