Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify works with next, but not with play-pause or previous #331

Open
jazz-it opened this issue Jun 4, 2024 · 1 comment
Open

Spotify works with next, but not with play-pause or previous #331

jazz-it opened this issue Jun 4, 2024 · 1 comment
Assignees
Labels

Comments

@jazz-it
Copy link

jazz-it commented Jun 4, 2024

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?

@Nambers
Copy link

Nambers commented Jul 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants