I emerged spotify with the libnotify USE flag, but I still dont have desktop notifications. I have a notification daemon running (mako) and other programs work fine.
I had an old laptop lying around, installed Gentoo with the same use flags and everything and surprisingly notifications work there. I have also tried to emerge -e, but that didn't solve the issue.
So as a last resort I reinstalled Gentoo on my main machine, just like as my old laptop, and notifications still don't work... 'dbus-monitor path=/org/freedesktop/Notifications' shows spotify doesnt send the notification on my main pc but does on the other one.
Have you verified that in settings "show desktop notifications when the song changes" is enabled?
Yes. What bugs me most is that in the livecd, notifications work
Is spotify being auto-started when the DE starts? I have found that when auto-starting, if spotify tries to start before the desktop has fully initialized it will behave "weird" (missing desktop icons, notifications or sometimes it just stays black). Something else to try is to clear the cache.
My setup is just a simple WM, so I'm sure nothing is trying to autostart spotify. Unfortunately, removing the cache doesn't fix it. I have also tried copying the cache and configs from old the computer to the new one but that also didn't work. I (probably) should have also mentioned that flatpak spotify works fine.
running dbus-monitor --session I get signal time=1723024754.217881 sender=org.freedesktop.DBus -> destination=:1.27 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.27" signal time=1723024754.217895 sender=org.freedesktop.DBus -> destination=:1.27 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost string ":1.27" signal time=1723024756.191224 sender=:1.19 -> destination=(null destination) serial=54 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged string "org.mpris.MediaPlayer2.Player" array [ // Here is all the song metadata ] Maybe the problem is the destination? When I run notify-send, the destination is not null
And this is what I get on my old laptop https://0x0.st/XVOl.txt ( file too big )
(In reply to kkflt from comment #8) > And this is what I get on my old laptop https://0x0.st/XVOl.txt ( file too > big ) for consistency's sake, here is the full log from the faulty machine https://0x0.st/XVO0.txt
Update: SOLVED All I had to do was autostart the xdg-desktop-portal hehe.. silly me :)