dirs
dirs copied to clipboard
a low-level library that provides config/cache/data paths, following the respective conventions on Linux, macOS and Windows
This PR migrates dirs-sys-next from winapi to windows-sys. Windows-sys is actively maintained, by Microsoft, and has recently started to be adopted in the ecosystem; mio, parking_lot, wasmtime, and others have...
Currently dirs_next and directories_next fall back to calling `getpwuid_r` when the `HOME` environment variable is not set, on most Unix-like platforms. This is undesirable for at least some users, because...
Not released yet, but it's already [part of the spec](https://gitlab.freedesktop.org/xdg/xdg-specs/-/commit/4f2884e16db35f2962d9b64312917c81be5cb54b): `$XDG_STATE_HOME`. I added support for it in this crate by copy-pasting and following existing patterns as much as possible. As...
I hate to be that guy, but I have to ask. There are two releases and they're almost identical. There are open PRs with no comments. Heck the [original dirs](https://github.com/dirs-dev/dirs-rs)...
Hi there, and thank you for this crate. macOS is in the weird position of having its own conventions for Mac apps, but also being a UNIX system. A lot...
Hello, and thanks for the library. On Windows, the documents directory exists at the following location by default: ``` C:\Users\Alice\Documents ``` However, it is possible for the user to change...
This issue came up while I was debugging an issue over on https://github.com/starship/starship/issues/3526. When `%USERPROFILE%` is set to a non-null, invalid home directory, `directories_next`, but not `dirs_next`, fails to provide...
There is a pull request for this that appeared in 2020, and now it can be pushed because `STATE_HOME` is standard now. https://github.com/xdg-rs/dirs/pull/43
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...
Hi, I am creating this ticket as there is mention the documentation about the crate working on Linux-based hardware [here](https://github.com/xdg-rs/dirs/blob/master/directories/README.md#platforms). We're using this crate for state management in our project...