From Void Linux Wiki
Jump to: navigation, search

Medic template.svgThis article or section needs expansion.

Reason: Could do with more information than the very basics. (Discuss)
Wikipedia-logo.png Spotify is a digital music and video streaming service.

Installing Spotify via xbps

First off, you need to enable access to the non-free repo if you haven't yet:

# xbps-install void-repo-nonfree

Afterwards you just issue the expected

# xbps-install -Su spotify

Spotify for Clementine

You can listen to music from Spotify using the Clementine player, install it with

# xbps-install clementine-spotify

Spotify options

To see a list of options, run

$ spotify --help


In some cases, Spotify fails to connect to the D-Bus daemon, resulting in tools such as playerctl to not work with Spotify.

The solution is to launch D-Bus correctly in your .xinitrc script:

# test for an existing bus daemon, just to be safe
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
  # if not found, launch a new one
  eval `dbus-launch --sh-syntax --exit-with-session`
  echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"

If you're using ConsoleKit and no login manager, you can launch dbus with your window manager in a ConsoleKit session. Modify your .xinitrc as following:

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session <your window manager>