Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935666 - media-sound/spotify: Desktop notifications not working
Summary: media-sound/spotify: Desktop notifications not working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-06 10:33 UTC by kkflt
Modified: 2024-08-31 16:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kkflt 2024-07-06 10:33:51 UTC
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.
Comment 1 kkflt 2024-07-16 19:06:39 UTC
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.
Comment 2 kkflt 2024-07-17 09:41:36 UTC
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.
Comment 3 Nowa Ammerlaan gentoo-dev 2024-07-31 15:02:27 UTC
Have you verified that in settings "show desktop notifications when the song changes" is enabled?
Comment 4 kkflt 2024-07-31 15:29:13 UTC
Yes. What bugs me most is that in the livecd, notifications work
Comment 5 Nowa Ammerlaan gentoo-dev 2024-07-31 15:34:36 UTC
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.
Comment 6 kkflt 2024-07-31 17:33:50 UTC
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.
Comment 7 kkflt 2024-08-07 10:06:08 UTC
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
Comment 8 kkflt 2024-08-07 15:07:59 UTC
And this is what I get on my old laptop https://0x0.st/XVOl.txt ( file too big )
Comment 9 kkflt 2024-08-07 15:12:31 UTC
(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
Comment 10 kkflt 2024-08-31 16:02:53 UTC
Update: SOLVED
All I had to do was autostart the xdg-desktop-portal hehe.. silly me :)