xdg_directories library

Properties

cacheHome Directory
The base directory relative to which user-specific non-essential (cached) data should be written. (Corresponds to $XDG_CACHE_HOME). [...]
read-only
configDirs List<Directory>
The list of preference-ordered base directories relative to which configuration files should be searched. (Corresponds to $XDG_CONFIG_DIRS). [...]
read-only
configHome Directory
The a single base directory relative to which user-specific configuration files should be written. (Corresponds to $XDG_CONFIG_HOME). [...]
read-only
dataDirs List<Directory>
The list of preference-ordered base directories relative to which data files should be searched. (Corresponds to $XDG_DATA_DIRS). [...]
read-only
dataHome Directory
The base directory relative to which user-specific data files should be written. (Corresponds to $XDG_DATA_HOME). [...]
read-only
runtimeDir Directory
The base directory relative to which user-specific runtime files and other file objects should be placed. (Corresponds to $XDG_RUNTIME_DIR). [...]
read-only
xdgEnvironmentOverride EnvironmentAccessor
A testing getter that returns the current value of the override that replaces the real environment lookups with an override. [...]
@visibleForTesting, read / write
xdgProcessManager ProcessManager
A testing function that replaces the process manager used to run xdg-user-path with the one supplied. [...]
@visibleForTesting, write-only

Functions

getUserDirectory(String dirName) Directory
Gets the xdg user directory named by dirName. [...]
getUserDirectoryNames() Set<String>
Gets the set of user directory names that xdg knows about. [...]

Typedefs

EnvironmentAccessor(String envVar) String
An override function used by the tests to override the environment variable lookups using xdgEnvironmentOverride.