Shameless plug: I am the author.
You must log in or register to comment.
What language? Python has PyXDG.
In shell it’s simply
XDG_DATA_HOME="${XDG_DATA_HOME:-"$HOME"/.local/share}" XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"$HOME"/.config}" etc.
Thanks, I did not know about PyXDG. That was the type of thing I was asking about.