rust-xdg icon indicating copy to clipboard operation
rust-xdg copied to clipboard

Add xdg-user-dirs support

Open m00nwtchr opened this issue 2 years ago • 4 comments

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 avatar Jul 20 '22 10:07 m00nwtchr

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

whitequark avatar Jul 23 '23 00:07 whitequark

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

Swivelgames avatar Mar 11 '24 21:03 Swivelgames

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

Swivelgames avatar Mar 13 '24 00:03 Swivelgames

Sure, seems reasonable.

whitequark avatar Mar 13 '24 05:03 whitequark