whitequark / rust-xdg

A library that makes it easy to follow the X Desktop Group specifications
https://wiki.freedesktop.org/www/Specifications/
Apache License 2.0
146 stars 29 forks source link

Add xdg-user-dirs support #45

Open m00nwtchr opened 1 year ago

m00nwtchr commented 1 year ago

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

whitequark commented 11 months ago

@m00nwtchr Are you still interested in this? I have a bit more bandwidth now and can work with you to get this merged.

Swivelgames commented 4 months ago

@whitequark I'm very much interested in this. I use xdg-user-dirs, and this would be an awesome addition.

Swivelgames commented 4 months ago

@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:

whitequark commented 4 months ago

Sure, seems reasonable.