standardpaths

Functions for retrieving standard paths in cross-platform manner.

Members

Enums

StandardPath
enum StandardPath

Locations that can be passed to writablePath and standardPaths functions.

Functions

findExecutable
string findExecutable(string fileName, string[] paths)

Finds executable by fileName in the paths specified by paths.

fsPath
string fsPath(short domain, OSType type)
Undocumented in source. Be warned that the author may not have intended to support it.
homeDir
string homeDir()
runtimeDir
string runtimeDir()

Returns user's runtime directory determined by XDG_RUNTIME_DIR environment variable. If directory does not exist it tries to create one with appropriate permissions. On fail returns an empty string.

standardPaths
string[] standardPaths(StandardPath type)
standardPaths
string[] standardPaths(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.
standardPaths
string[] standardPaths(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.
standardPaths
string[] standardPaths(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.
writablePath
string writablePath(StandardPath type)
writablePath
string writablePath(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.
writablePath
string writablePath(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.
writablePath
string writablePath(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta