-
Notifications
You must be signed in to change notification settings - Fork 451
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
Spotifyd appends *.instanceXXX to the D-Bus service name #1261
Comments
Thank you for the issue. That is actually an intentional feature that has been added some time ago and should be in line with the MPRIS specification. The reason, why you cannot use
|
I was actually able to control I can temporary make it work by addressing both players by their names, for example: |
Oh, that's interesting and good to hear. IIRC, If not, you can also get the number dynamically, since it's always the PID of spotifyd. So you should be able to add |
playerctl(1) works just fine against the system bus, at least on OpenBSD where the audio/spotifyd package's rc.d(8) daemon script runs spotifyd on the system bus.
|
FWIW, that is enough to pick, e.g. |
I also use both daemons, but I think it depends on the order of startup and/or which daemon is currently playing.
Either way, instead of forcing spotifyd under its dynamic name, have you tried ignoring shairport-sync?
|
Description
The D-Bus service name for Spotifyd always has a random number at the end, for example
org.mpris.MediaPlayer2.spotifyd.instance378
This way I can't control it with playerctl on my machine.
To Reproduce
Run spotifyd with the use_mrpis = true and dbus_type = system options.
Expected behavior
Spotifyd to register as
org.mpris.MediaPlayer2.spotifyd
and not have the .instanceXXX at the endCompilation flags
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: