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).
no setter
configDirs List<Directory>
The list of preference-ordered base directories relative to which configuration files should be searched. (Corresponds to $XDG_CONFIG_DIRS).
no setter
configHome Directory
The a single base directory relative to which user-specific configuration files should be written. (Corresponds to $XDG_CONFIG_HOME).
no setter
dataDirs List<Directory>
The list of preference-ordered base directories relative to which data files should be searched. (Corresponds to $XDG_DATA_DIRS).
no setter
dataHome Directory
The base directory relative to which user-specific data files should be written. (Corresponds to $XDG_DATA_HOME).
no setter
runtimeDir Directory?
The base directory relative to which user-specific runtime files and other file objects should be placed. (Corresponds to $XDG_RUNTIME_DIR).
no setter
xdgEnvironmentOverride EnvironmentAccessor?
A testing getter that returns the current value of the override that replaces the real environment lookups with an override.
getter/setter pair
xdgProcessManager ← ProcessManager
A testing function that replaces the process manager used to run xdg-user-path with the one supplied.
no getter

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? Function(String envVar)
An override function used by the tests to override the environment variable lookups using xdgEnvironmentOverride.