View previous topic :: View next topic |
Author |
Message |
diracsdelta n00b
Joined: 27 Jan 2018 Posts: 2
|
Posted: Sat Jan 27, 2018 7:51 am Post subject: spotify dbus error |
|
|
Hello,
First time gentoo user here. Super happy with gentoo, but having some issues with dbus.
I just installed Spotify, and would like to use its api with dbus. However, this isn't quite working out. Specifically, I get the following error when I start spotify:
Code: | GLib-GIO-CRITICAL **: g_dbus_connection_send_message: assertion 'G_IS_DBUS_CONNECTION (connection)' failed |
And when I try to run dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause, it errors out and returns "Error org.freedesktop.DBus.Error.SErviceUnknown: the name org.mpris.MediaPlayer2.spotify was not provided by any .service files" I've tried all three ebuilds (69, 70, 70r1), and all produce this error.
I don't have systemd (I use openrc). The first thing I thought was that maybe some dependencies are missing or perhaps pulseaudio is messing stuff up. So I double checked that dbus and glib was in my global useflags in make.conf and disabled the pulseaudio tag. However, this didn't help. I'm not sure how to proceed from here...Any advice? Maybe there's something simple I'm missing...
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Sun Mar 11, 2018 2:40 am Post subject: |
|
|
I don't use Spotify myself, so I can only give a couple of suggestions based on the ebuild. Have you tried to remove the cache?
Code: | rm -rf ~/.cache/spotify |
And do you have the package installed with USE=systray enabled? It looks like that useflag will enable a dbus script.
If neither of these suggestions help, I would advise to file a bug. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
diracsdelta n00b
Joined: 27 Jan 2018 Posts: 2
|
Posted: Sun Mar 11, 2018 3:33 am Post subject: |
|
|
I tried removing the cache, and I have enabled the systray flag. Neither fixes my error. Where should I submit my bug? |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
|
Back to top |
|
|
Aicop n00b
Joined: 17 Jun 2018 Posts: 1
|
Posted: Sun Jun 17, 2018 11:03 pm Post subject: |
|
|
For me it was resolved by enable the consolekit service and modifying the .xinitrc to use ck-launch-session to start the desktop , such as
Code: |
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startkde
|
Which was also required to allow my screen to be unlocked. |
|
Back to top |
|
|
f1tz Tux's lil' helper
Joined: 27 Aug 2020 Posts: 88
|
Posted: Sat Nov 14, 2020 11:26 am Post subject: |
|
|
i have the same issue, but am on openrc and Wayland. any idea how this could be implemented here? will further research and let you know in case i find something. |
|
Back to top |
|
|
|