Skip to content

Commit

Permalink
Adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Dec 22, 2024
1 parent bd30bba commit 3d63024
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,11 @@ details.
- `home_directory()` - The user's home directory.

If you would like to use XDG base directories on all platforms you can use the
`env(…)` function with the appropriate environment variable and fallback, e.g.
`env(…)` function with the appropriate environment variable and fallback,
although note that the XDG specificiation requires ignoring non-absolute paths,
so for full compatibility with spec-complient applications, you would need to
do:

```just
xdg_config_dir := if env('XDG_CONFIG_HOME', '') =~ '^/' {
env('XDG_CONFIG_HOME')
Expand Down

0 comments on commit 3d63024

Please sign in to comment.