Artix Linux Forum

Artix Linux => System => Topic started by: TGS963 on 25 October 2020, 06:29:07

Title: [Solved] Can't get dunst to work with dwm
Post by: TGS963 on 25 October 2020, 06:29:07
I've been wanting to use a notification daemon to get notifications for apps (e.g. Spotify) but it doesn't send the notifications for changing songs although I have enabled notifications in its settings. (I am using dwm window manager)

Also, dunst is running and notify-send works perfectly fine but no other apps send any notifications. I tried to follow the arch wiki and made a file called org.freedesktop.Notifications.service under
Code: [Select]
/use/share/dbus-1/services
with
Code: [Select]
[D-BUS Service]
Name=org.freedesktop.Notifications.service
Exec=/usr/bin/dunst
But it still isn't working as intended. Any pointers will be appreciated.

Thanks.
Title: Re: Can't get dunst to work with dwm
Post by: phoenix_king_rus on 25 October 2020, 07:40:44
Maybe dwm needs to be run in dbus session. If you use startx, use
Code: [Select]
exec dbus-launch dwm
Title: Re: Can't get dunst to work with dwm
Post by: TGS963 on 25 October 2020, 07:53:40
Maybe dwm needs to be run in dbus session. If you use startx, use
Code: [Select]
exec dbus-launch dwm
Hey, I tried it and it still isn't sending any notifications. I tried letting a song end and still it didn't show any notification
Title: Re: Can't get dunst to work with dwm
Post by: TGS963 on 25 October 2020, 09:33:31
An update: I have bpytop installed and it had a new update and gave a notification. But no other apps are doing that
Title: Re: Can't get dunst to work with dwm
Post by: phoenix_king_rus on 25 October 2020, 10:08:45
Hey, I tried it and it still isn't sending any notifications. I tried letting a song end and still it didn't show any notification
Maybe the app doesn't show notifications itself? Did you try notification managers?
Also, are there any messages in application log when notification should appear?
Title: Re: Can't get dunst to work with dwm
Post by: TGS963 on 25 October 2020, 14:03:33
Maybe the app doesn't show notifications itself? Did you try notification managers?
Also, are there any messages in application log when notification should appear?
Thanks, the application itself wasn't showing any notifications. I tried it with qbittorrent and it worked!!  :D