Spotifyd MPRIS not working

Creating a bug report/issue

Required Information

  • DietPi version: 9.18.1
  • Distro version: trixie 1
  • Kernel version: 6.12.47+rpt-rpi-v6
  • Architecture: armhf
  • SBC model: RPi B
  • Power supply used: standard 5V USB adapter
  • SD card used: Kensington 16 GB

Additional Information (if applicable)

  • Software title: spotifyd
  • Was the software title installed freshly or updated/migrated? Yes.
  • Can this issue be replicated on a fresh installation of DietPi?
    Yes. Installed new twice from a fresh download of the ISO and can confirm the issue persists.

Steps to reproduce

  1. install spotifyd
  2. edit the configuration file and set use_mpris to true and set dbus_type to system
  3. start spotifyd with verbose logging.

Expected behaviour

  • spotifyd recognizing the use_mpris option and trying to connect to the D-Bus

Actual behaviour

  • the verbose log output says use_mpris: None, dbus_type: None, although they are clearly enabled in the config
  • No tries to connect to the bus at all

Extra details

  • I followed the documentation: MPRIS on headless systems - Spotifyd to set up MPRIS and had the issue of spotifyd not connecting to the d-bus. And upon closer inspection of the logs, I found this issue.
  • Also disabled dbus and logind masking in dietpi.txt before installation of the OS.

Did you have dbus isntalled? You can check with:

dpkg -l | grep dbus

If the response is empty then you need to install it.

Thanks for the reply. I just now tested again and can confirm that the dbus package is installed. I already was pretty sure it is installed because I used busctl --system list to check if spotifyd bound to the bus. And that command was valid and able to connect to the bus.

I am now building Spotifyd from source on my own. I suspect that the mpris build flag is disabled in the official dietpi builds.

There is no DietPi build. We install this software from raspotify | A Spotify Connect client that mostly Just Works™