for quite some time I have the problem that Spotify breaks after some time.
I’m running tumbleweed with gnome. I installed spotify as flatpak, because that’s the only option the software center offers so I recon that’s the recommended way. At first everything is fine, but after some weeks it just doesn’t start any more. Just nothing happens. Even running it from command line using /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client @@u %U @@ doesn’t show anything.
The only way I found to fix it is to reinstall spotify every time this happens.
Ok, I’ve run into this, apparently there are some cache files that spotify makes upon each and every startup. When spotify refuses to launch, it may be because these cache files are not removed and are blocking the creation of new cache files from Spotify.
To remedy this, check the following directory: ls ~/.var/app/com.spotify.Client/cache/spotify/ and see if it contains anything. If it does, do the following: rm -rf .var/app/com.spotify.Client/cache/spotify/SingletonCookie .var/app/com.spotify.Client/cache/spotify/SingletonSocket .var/app/com.spotify.Client//cache/spotify/SingletonLock
The above command will remove the Singleton cache files that may be blocking the launch. After removing, logout and login again (can’t hurt) and try launching spotify. If that doesn’t work, see if the Singleton cache files are stored somewhere else (I installed the spotify flatpak globally (installed with sudo password). If you installed the application as a local user (no sudo password), these files could be somewhere else and you could use the find commandline tool to find them.