Attnam / ivan

Iter Vehemens ad Necem - a continuation of the graphical roguelike by members of http://attnam.com
GNU General Public License v2.0
306 stars 42 forks source link

Use XDG_DATA_HOME instead of HOME when available #620

Closed neatniets closed 3 years ago

neatniets commented 3 years ago

GetUserDataDir is changed for Linux systems to use XDG_DATA_HOME/ivan/ if the variable is set, otherwise it defaults to ~/.ivan/.

Some Linux users like to comply with the XDG Base Directory Specification. Essentially, this just means that hidden files and folders normally in the ~/ directory be moved to either ~/.config/ or ~/.local/share/. Typically, the user has to set the environment variables for XDG_CONFIG_HOME and/or XDG_DATA_HOME if they want the files/folders moved, otherwise those variables are unset by default.