Skip to main content

xdg-state-home

function

babashka.fs/xdg-state-home

(xdg-state-home [] [app])
Path representing the base directory relative to which user-specific state files should be stored as described in the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html). Returns path based on the value of env-var `XDG_STATE_HOME` (if set and representing an absolute path), else `(fs/path (fs/home) ".local" "state")`. When provided, appends `app` to the path.

No examples yet. Be the first to add one!