mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-05 16:02:48 +00:00
fix RA detection
This commit is contained in:
parent
e730bcbd59
commit
5c51704b7c
@ -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..."
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user