Spotify works with next, but not with play-pause or previous
The player I am using is Spotify v1.2.37.701.ge66eb7bc.
playerctl v2.4.1
kernel 6.1.92-1-MANJARO (64-bit)
KDE Plasma v6.0.5
KDE Frameworks v6.2.0
X11
When I run the playlist, then execute playerctl next from my terminal, the song is skipped to the next song, as expected, but if I run playerctl previous, Spotify ignores it. However, if I run playerctl -p spotify previous, Spotify responds correctly. I spotted the same issue with playerctl play-pause command. Strangely, only next works with Spotify without specifying the player, so I created a temporary workaround for my Previous media key on my keyboard:
if [[ $(playerctl -p spotify status) =~ ^(Playing)$ ]]; then playerctl -p spotify previous; else playerctl previous; fi
... and my Play/Pause media key:
if [[ $(playerctl -p spotify status) =~ ^(Playing|Paused)$ ]]; then playerctl -p spotify play-pause; else playerctl play-pause; fi
The above workaround works well, but I wonder if that could be avoided: is it due to the issue with playerctl or Spotify vs. MPRIS implementation perhaps?
I also faced this problem: prev and next works well but not for play/pause/pause-play, and using --player spotify can temporally fix it. It may similar to #261
playerctl v2.4.1
kernel Linux 6.10.0-arch1-2
hyprland-git 0.41.2.r45.8e15f91c-1
wayland