fix RA detection

This commit is contained in:
Dragoon Dorise 2025-01-16 08:34:46 +01:00
parent e730bcbd59
commit 5c51704b7c

View File

@ -57,33 +57,34 @@ cloudSyncHealth(){
kill="ESDE"
if [ "$(RetroArch_IsInstalled "$emuDeckEmuTypeFlatpak")" == "true" ]; then
echo "continue"
kill="RETROARCH"
notify-send "RETROARCH" --icon="$HOME/.local/share/icons/emudeck/EmuDeck.png" --app-name "EmuDeck CloudSync"
touch "$savesPath/.gaming"
touch "$savesPath/.watching"
echo "retroarch" > "$savesPath/.emuName"
cloud_sync_startService
systemctl --user is-active --quiet "EmuDeckCloudSync.service"
status=$?
if [ $status -eq 0 ]; then
echo "CloudSync Service running"
watcherStatus=0
else
text="$(printf "<b>CloudSync Error.</b>\nCloudSync service is not running. Please reinstall CloudSync and try again")"
zenity --error \
--title="EmuDeck" \
--width=400 \
--text="${text}" 2>/dev/null
fi
/usr/bin/flatpak run org.libretro.RetroArch & xdotool search --sync --name '^RetroArch$' windowminimize
else
zenity --question --title "CloudSync Health" --text "You need to have RetroArch installed for this to work." --cancel-label "Cancel" --ok-label "OK"
if [ $? = 0 ]; then
kill="RETROARCH"
notify-send "RETROARCH" --icon="$HOME/.local/share/icons/emudeck/EmuDeck.png" --app-name "EmuDeck CloudSync"
touch "$savesPath/.gaming"
touch "$savesPath/.watching"
echo "retroarch" > "$savesPath/.emuName"
cloud_sync_startService
systemctl --user is-active --quiet "EmuDeckCloudSync.service"
status=$?
if [ $status -eq 0 ]; then
echo "CloudSync Service running"
watcherStatus=0
else
text="$(printf "<b>CloudSync Error.</b>\nCloudSync service is not running. Please reinstall CloudSync and try again")"
zenity --error \
--title="EmuDeck" \
--width=400 \
--text="${text}" 2>/dev/null
fi
/usr/bin/flatpak run org.libretro.RetroArch & xdotool search --sync --name '^RetroArch$' windowminimize
echo "continue"
else
zenity --info --width=400 --text="Please install RetroArch from Manage Emulators..."