libXDGdirs  1.0.4

Build Status Codacy Badge CII Best Practices Doxygen Language grade: C/C++ CodeFactor License GitHub release (latest SemVer including pre-releases) AUR version

An implementation of XDG Base Directory Specification

XDGBDS defines four categories of dotfiles and the corresponding directories in a users home directory that should be used for those. The categories are cache, configuration, data and runtime files.

All those locations have corresponding XDG_* environment variables.

All paths set in them must be absolute. If a relative path is encountered, the path is consider invalid and NULL is assigned.



Download the latest version from release page or clone Git repository for latest:

git clone
cd libXDGdirs


cmake -B build/ -DCMAKE_BUILD_TYPE=Release
cmake --build build/


cmake --install build/


Generated with Doxygen

WARNING! Documentation available online uses latest commit, not release!


Refer to modules and examples in documentation

Read more