dunst-project / dunst

Lightweight and customizable notification daemon
https://dunst-project.org
Other
4.52k stars 338 forks source link

Missing icons in notifications #1172

Closed 0-wiz-0 closed 12 months ago

0-wiz-0 commented 1 year ago

I'm using dunst from pkgsrc, so there might be a packaging problem - hints welcome!

I followed the blog article https://blog.orhun.dev/introducing-runst/ and started dunst without arguments and no config file, then ran

notify-send "runst" "A dead simple notification daemon 🦡" --expire-time 3000                                                                                                                                                                                              

A message does pop up, but I get:

  WARNING: No icon found in path: 'dialog-information'                                                                                                                                                                                                                     

I have a couple icon packages installed:

hicolor-icon-theme-0.17                                                                                                                                                                                                              
adwaita-icon-theme-40.1.1                                                                                                                                                                                                                             
oxygen-icons-5.98.0                                                                                                                                                                                                     
gnome-icon-theme-3.12.0                                                                                                                                                                                                    

When I copied the default config file coming with dunst 1.9.0 to ~/.config/dunst/dunstrc I just got more errors:

WARNING: Could not find theme Adwaita                                                                                                                                                                                                                                      
WARNING: Could not find theme hicolor                                                                                                                                                                                                                                      
WARNING: Invalid theme index: -1                                                                                                                                                                                                                                           

Changing the icon_path as the article suggests didn't help either.

Any ideas what could be the problem and how to make dunst find its icons?

ShellCode33 commented 1 year ago

Hey, you can try

enable_recursive_icon_lookup = true
icon_theme = Adwaita  # same name as the folder in /usr/share/icons/
0-wiz-0 commented 12 months ago

Thank you. I tried that and it didn't help, but your comment did :) I noticed that dunst really only looks in /usr/share/icons- so I fixed that in the pkgsrc package for icon-lookup.c and settings_data.h and now it works out of the box.