Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 9b67721

Browse files
committed
Version 2.0 to signify semantic changes in user dirs, update dirs-sys dependency
1 parent dc83292 commit 9b67721

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dirs"
3-
version = "1.0.5"
3+
version = "2.0.0"
44
authors = ["Simon Ochsenreither <[email protected]>"]
55
description = "A tiny low-level library that provides platform-specific standard locations of directories for config, cache and other data on Linux, Windows, macOS and Redox by leveraging the mechanisms defined by the XDG base/user directory specifications on Linux, the Known Folder API on Windows, and the Standard Directory guidelines on macOS."
66
readme = "README.md"
@@ -11,4 +11,4 @@ keywords = ["xdg", "basedir", "app_dirs", "path", "folder"]
1111

1212
[dependencies]
1313
cfg-if = "0.1"
14-
dirs-sys = ""
14+
dirs-sys = "0.3.1"

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,16 @@ cargo build --target=x86_64-apple-darwin
160160
cargo build --target=x86_64-unknown-redox
161161
```
162162

163+
## Changelog
164+
165+
### 2
166+
167+
The behavior of deactivated, missing or invalid [_XDG User Dirs_](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)
168+
entries on Linux has been improved (contributed by @tmiasko, thank you!):
169+
170+
- Version 1 returned the user's home directory (`Some($HOME)`) for such faulty entries, except for a faulty `XDG_DESKTOP_DIR` entry which returned (`Some($HOME/Desktop)`).
171+
- Version 2 returns `None` for such entries.
172+
163173
## License
164174

165175
Licensed under either of

0 commit comments

Comments
 (0)