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
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.
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
1.91
i3
Arch Linux
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 actualdefault_icon
path and colors.To resolve this issue, I have tried things such as replacing
default_icon
withnew_icon
andicon
. I have also tried changing theicon_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
.