Recently I started to use Void Linux, and one of the first things that I did was download spotify, so I downloaded it following theses steps:
Void Wiki Spotify
Every time I start spotify, this weird message shows up:
Image: https://i.imgur.com/VCc6vPf.png
I can listen normal songs, but I'm not able to control it by command line, I've tried every command to make it:
1:
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
2:
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause
3:
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Play
4:
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
5:
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
However, none of them work, and gives me the same output:
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.mpris.MediaPlayer2.spotify was not provided by any .service files
So i've tried to do a lot of things:
1. First thing, of course, I checked if there was a dbus service running, so i've typed:
ps aux | grep dbus
And the output was:
root 628 0.0 0.0 2212 676 ? Ss 16:23 0:00 runsv dbus
dbus 643 0.0 0.0 3364 2608 ? S 16:23 0:00 dbus-daemon --system --nofork --nopidfile
valeyard 941 0.0 0.0 4576 2112 ? S 16:23 0:00 dbus-launch --autolaunch=994fd67f5eaac1aef6bed0e25a923fa4 --binary-syntax --close-stderr
valeyard 944 0.0 0.0 3252 1984 ? Ss 16:23 0:01 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
valeyard 1320 0.0 0.0 3252 140 ? Ss 20:13 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 5 --print-address 7 --session
valeyard 8946 0.0 0.0 3252 2440 ? S 16:35 0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
valeyard 11001 0.0 0.0 4904 2532 pts/7 S+ 20:20 0:00 grep --color=auto dbus
2. Enable dbus in Void linux:
ln -s /etc/sv/dbus /var/service/dbus
3. Start a dbus service:
dbus-launch
4. Some guy on freenode in the #linux channel, said me to see if this variable was empty: $DBUS_SESSION_BUS_ADDRESS. So i typed:
echo $DBUS_SESSION_BUS_ADDRESS
and, indeed, it was empty, so he told me to type the following command:
eval `dbus-launch`
Then, the $DBUS_SESSION_BUS_ADDRESS variable wasn't empty anymore:
echo $DBUS_SESSION_BUS_ADDRESS
Output:
unix:abstract=/tmp/dbus-lCHj4CqJM8,guid=c84e7f8a483e82ea219cefd15a9b2c16
But, none of the above attempts worked. What can i do to control it via command line?