Hello,
I recently received a PR against mame, adding support for XDG_CONFIG_HOME, XDG_STATE_HOME and XDG_DATA_HOME [1]. It appears that these folders are not defined by default in Fedora, at least not in Gnome. Is this expected? If it is something which needs to be defined by the user regardless, I am not clear on the added value of adding the support. Thanks for clearing the confusion in advance.
Best regards, Julian
The XDG spec [0] says that, if the env vars are unset, or set to an empty value, a compliant application should fall back to the default value given by the spec.
So I guess the answer is that, since we don't need to use non-standard directories, setting the env vars to the same value as the fallback/default doesn't make much sense (apart from maybe working as a band-aid solution for programs that don't follow the spec fully and don't implement the fallback).
Sincerely, A.FI.
[0] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html