Closed taigrr closed 2 years ago
I just want to say that you don't necessarily need to create an issue just to open a PR. It's fine to just open a PR if you want to do so.
Thanks @Jacalz , I'll take that going forward but there was more context here in some Slack messages.
Thanks for resolving this @taigrr
According to the XDG spec: (here)
XDG_DATA_HOME
takes precedence$HOME/.local/share
XDG_DATA_DIRS
contains system-wide data which should be taken into account at a lower precedence./usr/local/share/:/usr/share/
Currently, the code is backwards, checking the
XDG_DATA_DIRS
variable first, with a couple of fallbacks.XDG_DATA_HOME
should be used first, withXDG_DATA_DIRS
as a fallback.The reason this distinction is important: As it is right now, a non-root user is unable to customize their
xsessions
list, as on any normal system withXDG_DATA_DIRS
set, user config files will not be read.