The OpenD Programming Language

xdgpaths

Getting XDG base directories. Note: These functions are defined only on freedesktop systems.

Members

Functions

xdgAllConfigDirs
string[] xdgAllConfigDirs(string subfolder)

The ordered set of non-empty base paths to search for configuration files, in descending order of preference.

xdgAllDataDirs
string[] xdgAllDataDirs(string subfolder)

The ordered set of non-empty base paths to search for data files, in descending order of preference.

xdgCacheHome
string xdgCacheHome(string subfolder, bool shouldCreate)

The base directory relative to which user-specific non-essential files should be stored.

xdgConfigDirs
string[] xdgConfigDirs(string subfolder)

The ordered set of non-empty base paths to search for configuration files, in descending order of preference.

xdgConfigHome
string xdgConfigHome(string subfolder, bool shouldCreate)

The base directory relative to which user-specific configuration files should be stored.

xdgDataDirs
string[] xdgDataDirs(string subfolder)

The ordered set of non-empty base paths to search for data files, in descending order of preference.

xdgDataHome
string xdgDataHome(string subfolder, bool shouldCreate)

The base directory relative to which user-specific data files should be stored.

xdgRuntimeDir
string xdgRuntimeDir()

Path to runtime user directory.

See Also

Meta