There is an existing standard for this: https://specifications.freedesktop.org/basedir-spec/basedir-...
It's generally really well respected by a lot of software. It's just not well known enough that its annoying. In my experience a lot of the failures are from Apple developers assuming that this is a "Linux spec".