From 3d63024d7698d533a33c6fc12bea36cc8146d3f9 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sat, 21 Dec 2024 19:18:55 -0800 Subject: [PATCH] Adapt --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b7b8dc71a..707abdb724 100644 --- a/README.md +++ b/README.md @@ -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')