dunst-project / dunst

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

XDG_CONFIG_DIRS fallback #1176

Closed akinokonomi closed 10 months ago

akinokonomi commented 1 year ago

Issue description

Dunst manual page reads:

       $XDG_CONFIG_DIRS
               This, like $PATH for instance, is a :-separated list of base directories in descending order of importance.  (/etc if unset or empty)

While https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables says:

If $XDG_CONFIG_DIRS is either not set or empty, a value equal to /etc/xdg should be used.

So, shouldn't system /etc/dunst/dunstrc actually be /etc/xdg/dunst/dunstrc, too?

Thanks!

Installation info

Reproducible with the default Dunst config.

EDIT: Made it more comprehensible. Sorry about the mess.

fwsmit commented 10 months ago

Yeah, that's true. But in my experience not many programs actually conform to this spec, since it's an extra directory to type. We've chosen not to do that for dunst either.