/os/well-known
Cross-platform XDG / OS standard directories (config-dir, cache-dir, data-dir, home-dir, download-dir).
Functions & symbols#
cache-dir#
Returns the host OS path for the user cache directory (XDG_CACHE_HOME).
Any(wk/cache-dir)config-dir#
Returns the host OS path for the user-specific configuration directory (XDG_CONFIG_HOME / AppData).
Any(wk/config-dir)data-dir#
Returns the host OS path for the roaming user data directory (XDG_DATA_HOME).
Any(wk/data-dir)data-local-dir#
Returns the host OS path for the machine-local application data directory.
Any(wk/data-local-dir)desktop-dir#
Returns the host OS path for the user Desktop directory.
Any(wk/desktop-dir)document-dir#
Returns the host OS path for the user Documents directory.
Any(wk/document-dir)download-dir#
Returns the host OS path for the user Downloads directory.
Any(wk/download-dir)executable-dir#
Returns the host OS path for the user binary/executable directory (~/.local/bin).
Any(wk/executable-dir)font-dir#
Returns the host OS path for the user Fonts directory.
Any(wk/font-dir)get-app-dirs#
Computes standard OS app directories `{:config-dir :data-dir :cache-dir :state-dir ...}` for an application ID.
| Parameter | Type | Optional | Description |
|---|---|---|---|
qualifier | String | required | Reverse-domain qualifier (e.g. "com") |
org | String | required | Organization name |
app | String | required | Application name |
Any(wk/get-app-dirs "dev" "tangu" "cli")get-user-dirs#
Returns a Map of all standard OS user directories (`:home-dir`, `:desktop-dir`, `:download-dir`, ...).
Any(wk/get-user-dirs)home-dir#
Returns the host OS path for the current user's home directory.
Any(wk/home-dir)music-dir#
Returns the host OS path for the user Music directory.
Any(wk/music-dir)picture-dir#
Returns the host OS path for the user Pictures directory.
Any(wk/picture-dir)preference-dir#
Returns the host OS path for the user preference directory.
Any(wk/preference-dir)public-dir#
Returns the host OS path for the user Public share directory.
Any(wk/public-dir)runtime-dir#
Returns the host OS path for the user runtime socket/PID directory (XDG_RUNTIME_DIR).
Any(wk/runtime-dir)state-dir#
Returns the host OS path for the user state data directory (XDG_STATE_HOME).
Any(wk/state-dir)template-dir#
Returns the host OS path for the user Templates directory.
Any(wk/template-dir)video-dir#
Returns the host OS path for the user Videos directory.
Any(wk/video-dir)