Mailspring should store mail data in XDG_DATA_HOME, in accordance with the XDG Base Directory specification

Mailspring doesn’t seem to fully conform to the XDG Base Directory specification because it puts user-generated data files like email attachments in that directory. Is it possible for Mailspring to make sure of $XDG_DATA_HOME for the data files?

For now I have just symlinked $XDG_CONFIG_HOME/Mailspring to $HOME/.mailspring


(Originally posted by jsbhat on GitHub.)

Hey! Ahh this would be really cool, but Mailspring’s single “home” directory is a pretty baked in concept throughout the codebase. I’ll keep this in mind though, I didn’t realize there was an $XDG_DATA_HOME env var, actually!


(Originally posted by bengotow on GitHub.)