This is a low-level module, it is meant to be wrapped by higher level services.
For more information, refer to the documentation of the libxdg-basedir
project or the official specification at:
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html