rust-xdg
rust-xdg copied to clipboard
Add xdg-user-dirs support
This adds support for directories created by the xdg-user-dirs tool.
Definitely not finished yet, but I would like some thoughts, especially on e.g. error handling (Do I create another error type UserDirectoriesError
and a trait they both implement for L#634? or just extend BaseDirectoriesError
and make it XdgError
? etc.)
Related: #1
@m00nwtchr Are you still interested in this? I have a bit more bandwidth now and can work with you to get this merged.
@whitequark I'm very much interested in this. I use xdg-user-dirs
, and this would be an awesome addition.
@whitequark I started work on rewriting this based on the current signatures and patterns in BaseDirectories
.
I'll also break things out similar to the way this PR was put together.
Is that something you'd be interested in merging? If so, I can continue it and push up a PR when I'm done! :+1:
Sure, seems reasonable.