News for hackers. Stuff that matters.
Re:Why the Windows Registry sucks technically (2010) by tomcam on Friday July 29, 2022 @02:34PM (#32280323)
I don't mind dot files or dot folders, but I'm very open to better ideas. My app works on Mac, Linux, and Windows though. Any thoughts?
Re:Why the Windows Registry sucks technically (2010) by ElectricalUnion on Friday July 29, 2022 @03:00PM (#32280574)
There are several libraries that handle directory for you in the appropriate OS-specific manner.

One Rust example being https://github.com/dirs-dev/dirs-rs

> The library provides the location of these directories by leveraging the mechanisms defined by

> the XDG base directory and the XDG user directory specifications on Linux and Redox

> the Known Folder API on Windows

> the Standard Directories guidelines on macOS