userApplicationDataDirectory why doesnt this use XDG_DATA_HOME?


userApplicationDataDirectory just uses "~", why doesn't this first check XDG_DATA_HOME, and fall back to "~" if the environment variable is not present?



I think XDG_CONFIG_HOME is actually closer to the meaning of that folder.

I normally hesitate to change things like that, because if an app had already been using the old version then this change would make it fail to find its config files again.. But, in this case, no-one with any sense should have been storing their config files directly inside the home folder anyway, so they're almost certainly not using this on linux. I think it's probably safe to change.. Thoughts?