mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-05 16:02:48 +00:00
52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# genericApplicationFlatseal
|
|
|
|
# Variables
|
|
Flatseal_emuName="Flatseal"
|
|
# shellcheck disable=2034,2154
|
|
Flatseal_emuType="${emuDeckEmuTypeFlatpak}"
|
|
Flatseal_emuPath="com.github.tchx84.Flatseal"
|
|
# shellcheck disable=2034
|
|
Flatseal_releaseURL=""
|
|
|
|
# Install
|
|
Flatseal_install () {
|
|
setMSG "Installing ${Flatseal_emuName}."
|
|
installEmuFP "${Flatseal_emuName}" "${Flatseal_emuPath}" "genericapplication" ""
|
|
}
|
|
|
|
# ApplyInitialSettings
|
|
Flatseal_init () {
|
|
setMSG "Initializing ${Flatseal_emuName} settings."
|
|
configEmuFP "${Flatseal_emuName}" "${Flatseal_emuPath}" "true"
|
|
}
|
|
|
|
# Update flatpak & launcher script
|
|
Flatseal_update () {
|
|
setMSG "Updating ${Flatseal_emuName} settings."
|
|
updateEmuFP "${Flatseal_emuName}" "${Flatseal_emuPath}" "genericapplication" ""
|
|
}
|
|
|
|
# Uninstall
|
|
Flatseal_uninstall () {
|
|
setMSG "Uninstalling ${Flatseal_emuName}."
|
|
uninstallEmuFP "${Flatseal_emuName}" "${Flatseal_emuPath}" "genericapplication" ""
|
|
}
|
|
|
|
# Check if installed
|
|
Flatseal_IsInstalled () {
|
|
if [ "$(flatpak --columns=app list | grep "${Flatseal_emuPath}")" == "${Flatseal_emuPath}" ]; then
|
|
echo true
|
|
return 1
|
|
else
|
|
echo false
|
|
return 0
|
|
fi
|
|
}
|
|
|
|
# Import steam profile
|
|
Flatseal_addSteamInputProfile () {
|
|
echo "NYI"
|
|
}
|