dunst-project / dunst

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

Can't set default_icon path with environment variable ($HOME or ~) #1173

Closed tehmasterer closed 10 months ago

tehmasterer commented 1 year ago

Issue description

The default_icon path cannot use the $HOME or ~ environment variables. The full path must be specified to for it to work. E.x.: /home/user/.local/share/icons/my-icon.svg

Installation info

Minimal dunstrc ```ini [urgency_low] # IMPORTANT: colors have to be defined in quotation marks. # Otherwise the "#" and following would be interpreted as a comment. background = "#222222" foreground = "#888888" timeout = 10 # Icon for notifications with low urgency, uncomment to enable default_icon = $HOME/.local/share/icons/urg-low.svg [urgency_normal] background = "#285577" foreground = "#ffffff" timeout = 10 # Icon for notifications with normal urgency, uncomment to enable default_icon = ~/.local/share/icons/urg-norm.svg [urgency_critical] background = "#900000" foreground = "#ffffff" frame_color = "#ff0000" timeout = 0 # Icon for notifications with critical urgency, uncomment to enable default_icon = $HOME/.local/share/icons/urg-crit.svg ```

Additional information

The config above is copied from the example config: lines 313-335. This is identical to my dunstrc, minus the actual default_icon path and colors.

To resolve this issue, I have tried things such as replacing default_icon with new_icon and icon. I have also tried changing the icon_path, which points to the directory holding the images for the icons.

According to #520 this issue was fixed and merged 4 years ago, so I'm not sure why I can't get it working.

I can confirm that the environment variables work in a shell script using dunstify.