EmuDeck/tools/launchers/eden.sh
Felipe Santos ccbaa8686d
Fix Citron command line arguments handling (#1464)
* Eden

* Fix Citron command line arguments handling

---------

Co-authored-by: Dragoon Dorise <rodrigosedano@me.com>
2025-05-24 09:36:15 +02:00

24 lines
656 B
Bash
Executable file

#!/bin/bash
emuName="eden" #parameterize me
. "$HOME/.config/EmuDeck/backend/functions/all.sh"
emulatorInit "$emuName"
# find full path to emulator appimage
appimage=$(find "$emusFolder" -iname "${emuName}*.AppImage" -print -quit 2>/dev/null)
# if appimage doesn't exist fall back to flatpak
if [[ -z "$appimage" ]]; then
flatpakApp=$(/usr/bin/flatpak list --app --columns=application | grep -im1 "${emuName}")
set -- /usr/bin/flatpak run "$flatpakApp" "$@"
else
# make sure the appimage is executable
chmod +x "$appimage"
set -- "$appimage" "$@"
fi
echo "Launching ${emuName} with:" "$@"
"$@"
cloud_sync_uploadForced
rm -rf "$savesPath/.gaming"