Skip to content

MPRIS interface isn't always exposed after a connection reset #1329

@eladyn

Description

@eladyn
          > 7\. Calling `rs.spotifyd.Controls.TransferPlayback` causes the MPRIS service to become available as well.

Unfortunately, I am able to reliably reproduce every step except for this one.

When the connection to the server is genuinely closed, I can successfully transfer playback using: busctl call --user rs.spotifyd.instance$(pidof -s spotifyd) /rs/spotifyd/Controls rs.spotifyd.Controls TransferPlayback every time. However, on some occasions, when I try to invoke Play or PlayPause, I receive the following error afterward: Call failed: The name org.mpris.MediaPlayer2.spotifyd.instance<PID> was not provided by any .service files. The same happens when I try: busctl introspect --user org.mpris.MediaPlayer2.spotifyd.instance<PID> /org/mpris/MediaPlayer2. This confirms that the D-Bus interface is not always exposed reliably. Notably, when I manually restart the systemd service, I haven’t observed this issue.

Originally posted by @soulseller in #1317 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA functionality or parts of a program that do not work as intended

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions