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
154 stars 30 forks source link

Support windows #67

Open dsisnero opened 8 months ago

dsisnero commented 8 months ago

A lot of crates use this and so they are not able to use XDG spec on windows. If I have XDG directories set on Windows - I want these to be used and then fallback to LocalAppData when not set

If there is a set non-empty XDG environment variable and it points to a valid absolute path, it should be used. Otherwise, use the Windows known files specification to find the OS-defined folder. Is this possible?

whitequark commented 8 months ago

Duplicate of #28.