After discovering my installed version (1.0.77.338.g758ebd78) crashes immediately when I open a podcast, installed from spotify's repository, I removed it from my repositories using sudo software-properties-gtk and installed it with Snap instead.
Now, it no longer appears in apt list --installed but it's there in snap list and it's now the latest version (1.0.80.474.gef6b503e) and podcasts work wonderfully.
However, I had media shortcuts in place to play/pause, skip to next track and return to previous track and I even had it as the default music player which I did by assigning %U to its .desktop file.
The media keys no longer work and for the life of me I can't find the .desktop file anywhere.
I'm using Ubuntu 18.04.
Any help would be greatly appreciated.
*EDIT: Now, the media controls are working. I didn't do anything special, but I remember using sudo snap refresh and using sudo apt dist-upgrade so that may be it. However, I still need help making spotify the default music player again.
Asked
Active
Viewed 1,423 times
2
Oussema
- 144
1 Answers
2
the desktop file should stand in this folder
/var/lib/snapd/desktop/applications
You can create a new one if needed
sudo tee -a /var/lib/snapd/desktop/applications/spotify.desktop << ENDsd
[Desktop Entry]
Type=Application
Name=Spotify
GenericName=Music Player
Icon=/usr/share/spotify/icons/spotify-linux-128.png
TryExec=spotify
Exec=spotify %U
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify
ENDsd
Or copy/paste those lines in /var/lib/snapd/desktop/applications/spotify.desktop
[Desktop Entry]
Type=Application
Name=Spotify
GenericName=Music Player
Icon=/usr/share/spotify/icons/spotify-linux-128.png
TryExec=spotify
Exec=spotify %U
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify
cmak.fr
- 8,976