ROG Zephyrus G14
Manjaro Linux 5.8 with G14 patch
184.108.40.2062.gbd112320, AUR package
Spotify does not send notifications or respond to media keys. I have checked notify-send, and it functions perfectly. When run from the terminal, Spotify tells me
(spotify:145942): GLib-GIO-CRITICAL **: 20:15:11.712: g_dbus_connection_send_message: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Spotify does not show up in MPRIS as a media player, although I installed Clementine and that appears fine, pointing to an issue with Spotify. Running the commands bound to my media keys directly, e.g.
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop
gives the error message
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.mpris.MediaPlayer2.spotify was not provided by any .service files
Following some questions online I've tried changing my .xinitrc file's command to start my window manager to a few different variations with no success, notably
exec "dbus-launch --exit-with-session i3"
I'm at my wits' end, and outside of my expertise with DBus and MPRIS, so any help or pointers would be appreciated.
Solved! Go to Solution.
It appears the issue was not with Spotify after all. My changes were to .xinitrc, but because I was starting i3 with lightdm, .xinitrc was not being run. Instead, I put the following commands into my .profile:
eval $(dbus-launch --sh-syntax)
I'm not sure which of these was the solution, but together they fixed MPRIS controls and caused notifications to work again.