Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
xdg-dirs.hh File Reference
#include <filesystem>
#include <vector>

Go to the source code of this file.

Functions

std::filesystem::path nix::unix::xdg::getCacheHome ()
std::filesystem::path nix::unix::xdg::getConfigHome ()
std::vector< std::filesystem::path > nix::unix::xdg::getConfigDirs ()
std::filesystem::path nix::unix::xdg::getDataHome ()
std::filesystem::path nix::unix::xdg::getStateHome ()

Function Documentation

◆ getCacheHome()

std::filesystem::path nix::unix::xdg::getCacheHome ( )

Get the XDG Base Directory for cache files. Returns $XDG_CACHE_HOME or ~/.cache

◆ getConfigDirs()

std::vector< std::filesystem::path > nix::unix::xdg::getConfigDirs ( )

Get the XDG Base Directory list for configuration files. Returns parsed $XDG_CONFIG_DIRS or /etc/xdg as a vector

◆ getConfigHome()

std::filesystem::path nix::unix::xdg::getConfigHome ( )

Get the XDG Base Directory for configuration files. Returns $XDG_CONFIG_HOME or ~/.config

◆ getDataHome()

std::filesystem::path nix::unix::xdg::getDataHome ( )

Get the XDG Base Directory for data files. Returns $XDG_DATA_HOME or ~/.local/share

◆ getStateHome()

std::filesystem::path nix::unix::xdg::getStateHome ( )

Get the XDG Base Directory for state files. Returns $XDG_STATE_HOME or ~/.local/state