Hacker News new | ask | show | jobs
by perbu 613 days ago
Is XDG_CONFIG_HOME Unix? Isn't it just some Linux convention?
1 comments

XDG = X (pronounced “cross”) Desktop Group, aka freedesktop.org, promulgator of conventions for desktop apps.

So, neither one really.

Yeah, I'm gonna stick with POSIX. All systems I'm aware of (other than Linux Desktop apps) use $HOME. If you want to extend your functionality to use an OS-specific directory, that's fine, but $HOME is the safest default. (Same for things like $TMPDIR)
None of that is defined in POSIX, hence the perceived need for XDG.