EmuDeck/functions/GenericApplicationsScripts/genericApplicationSpotify.sh
Dragoon Dorise 00a8f1c19c
New paths (#1381)
* new paths

* /

* EmuDeck/

* mv

* no &

* ESDE new location

* ESDE new path

* no symlink load

* bigpemu new path

* force move

* global vars

* oopsie

* missing $emudeckBackend

* better migration detection

* Keep Appimages in Applications

* Keep Appimages in Applications
2025-01-02 13:42:31 +01:00

50 lines
1.2 KiB
Bash

#!/bin/bash
# Variables
Spotify_emuName="Spotify"
Spotify_emuType="$emuDeckEmuTypeFlatpak"
Spotify_emuPath="com.spotify.Client"
Spotify_releaseURL=""
# Install
Spotify_install() {
setMSG "Installing $Spotify_emuName."
installEmuFP "${Spotify_emuName}" "${Spotify_emuPath}" "genericapplication" ""
}
# ApplyInitialSettings
Spotify_init() {
setMSG "Initializing $Spotify_emuName settings."
configEmuFP "$Spotify_emuName" "$Spotify_emuPath" "true"
#Spotify_addSteamInputProfile
}
# Update flatpak & launcher script
Spotify_update() {
setMSG "Updating $Spotify_emuName settings."
updateEmuFP "${Spotify_emuName}" "${Spotify_emuPath}" "genericapplication" ""
}
# Uninstall
Spotify_uninstall() {
setMSG "Uninstalling $Spotify_emuName."
uninstallEmuFP "$Spotify_emuName" "${Spotify_emuPath}" "genericapplication" ""
}
# Check if installed
Spotify_IsInstalled() {
if [ "$(flatpak --columns=app list | grep "$Spotify_emuPath")" == "$Spotify_emuPath" ]; then
echo true
return 1
else
echo false
return 0
fi
}
# Import steam profile
Spotify_addSteamInputProfile() {
echo "NYI"
#rsync -r "$emudeckBackend/configs/steam-input/emudeck_spotify_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
}