
XDG provides a module for supporting the XDG Base Directory. Presently, it only supports the XDG Base Directory Standard.
If your program utilizes user or system-wide support files (e.g. configuration files), you owe it to yourself to checkout the XDG base directory standard.
You can learn more about the standard at: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html