XDG user directories (e.g. path.downloadDir
) are not env vars [docs]
#3090
Labels
type: documentation
Need to update the API documentation
The documentation suggests
path.downloadDir
, for example, will read the value of an environment variable namedXDG_DOWNLOAD_DIR
.Unfortunately IMO, this is not a (standard) env var, and not read by either
dirs-next
or thexdg-user-dirs
program.Instead,
${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dir
(containingexport
-format like list of these settings) is parsed.(Aside: and a bug IMO,
dirs-next
does not provide defaults. Sopath.downloadDir
fails ifuser-dirs.dir
does not exist, or does not contain a value forXDG_DOWNLOAD_DIR
.Simplest fix for)tauri
(distribution packages) is to considerxdg-user-dirs
a dependency, and ensurexdg-user-dirs-update
has been run, which will generate defaults.PR to follow.
The text was updated successfully, but these errors were encountered: