irccd
3.0.3
|
XDG directory specifications. More...
#include <xdg.hpp>
Public Member Functions | |
xdg () | |
auto | get_config_home () const noexcept -> const std::string & |
auto | get_data_home () const noexcept -> const std::string & |
auto | get_cache_home () const noexcept -> const std::string & |
auto | get_runtime_dir () const noexcept -> const std::string & |
auto | get_config_dirs () const noexcept -> const std::vector< std::string > & |
auto | get_data_dirs () const noexcept -> const std::vector< std::string > & |
XDG directory specifications.
Read and get XDG directories.
This file should compiles on Windows to facilitate portability but its functions must not be used.
|
inline |
Open an xdg instance and load directories.
std::runtime_error | on failures |
|
inlinenoexcept |
Get the cache directory. ${XDG_CACHE_HOME} or ${HOME}/.cache
|
inlinenoexcept |
Get the standard config directories. ${XDG_CONFIG_DIRS} or { "/etc/xdg" }
|
inlinenoexcept |
Get the config directory. ${XDG_CONFIG_HOME} or ${HOME}/.config
|
inlinenoexcept |
Get the data directories. ${XDG_DATA_DIRS} or { "/usr/local/share", "/usr/share" }
|
inlinenoexcept |
Get the data directory. ${XDG_DATA_HOME} or ${HOME}/.local/share
|
inlinenoexcept |
Get the runtime directory.
There is no replacement for XDG_RUNTIME_DIR, if it is not set, an empty value is returned and the user is responsible of using something else.