Open cvicentiu opened 1 year ago
Also discovered one can debug notifications via:
$ dbus-monitor --session interface='org.freedesktop.Notifications'
This is a great investigation and write-up. Thank you!
I think your suggestions make a lot of sense. I do plan to look closer into it and try to come up with a good solution but unfortunately I don't think I'll be able to do that very soon.
Problem statement
Currently running Archlinux with Sway. With the Adwaita Icon theme configured for GTK, the sound change notifications don't have the volume icon correctly set. Instead I get the placeholder "missing icon".
More details following my investigation:
The issue is that the notification icon is hardcoded to
notification-audio-volume-xxx
, see https://github.com/vially/volumectl/blob/29cb6a1a97a76f87c3c48695cb59a00c80dc63a2/notify.go#L50Unfortunately, Adwaita icon theme (which is probably the most popular amongs default installs with users switching from Gnome) does not have it.
Here is the list of icons that work for Papirus:
And here is the list of icons for Adwaita:
Here is what Adwaita does have:
Workaround
It took me quite some time to track down what the problem was. Switching to Papirus icon theme fixed my issue, but I think volumectl should be made such that it works with Adwaita (and possibly other popular icon themes as well)
Suggestions:
For instance:
volumectl up --debug
Could output: