-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
Description
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?
Reactions are currently unavailable