spotifyd icon indicating copy to clipboard operation
spotifyd copied to clipboard

Error when launching from tty

Open timsofteng opened this issue 3 years ago • 1 comments

Description When I'm trying to launch spotifyd from linux tty I get error:

Caught panic with message: Failed to initialize DBus connection: D-Bus error: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 (org.freedesktop.DBus.Error.NotSupported)

Why I cannot use it without graphic session?

To Reproduce

  1. Open linux tty.
  2. spotifyd --no-daemon
  3. see error

Expected behavior Should works on tty without graphical session.

Versions (please complete the following information):

  • Spotifyd: spotifyd-0.3.3-r2

timsofteng avatar Aug 20 '22 12:08 timsofteng

This error message comes from the DBus MPRIS implementation, which won't work without a session DBus. You can disable that in your config file by setting use_mpris = false.

Hope this helps!

eladyn avatar Aug 20 '22 14:08 eladyn