Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XDG user dirs should default to $HOME #56

Open
OJFord opened this issue Dec 21, 2021 · 0 comments
Open

XDG user dirs should default to $HOME #56

OJFord opened this issue Dec 21, 2021 · 0 comments

Comments

@OJFord
Copy link

OJFord commented Dec 21, 2021

If ${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs does not exist, or lacks the specified key (e.g. XDG_DOWNLOAD_DIR), the behaviour of xdg-user-dir the CLI program is to output $HOME.

In the same case, the behaviour of dirs_next::download_dir() (for example) is to return None.

There's no specification as such for '"well known" user directories', but it's implied that this is the intended fall-back behaviour:

Note: To disable a directory, point it to the homedir.

https://www.freedesktop.org/wiki/Software/xdg-user-dirs/

cf. tauri-apps/tauri#3090

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant