Re:Why the Windows Registry sucks technically (2010)
by ElectricalUnion on Friday July 29, 2022 @10:16AM
(#32277225)
Most Linux GUI apps either litter your home folder with dotfiles, dotfolders (both disgusting) or they follow XDG Base Directory specifications and place configurations in ${XDG_CONFIG_HOME:-${HOME}/.config}
[ Parent
| on HN ]
Re:Why the Windows Registry sucks technically (2010)
by dklodh on Friday July 29, 2022 @01:44PM
(#32279837)
Most don't even know of XDG. The reason is, there's no central documentation or route for the userland. By Linux, we understand, the kernel and to the kernel developers, that is true. So let alone the anarchy of the userland be handled by distributions and users.
Re:Why the Windows Registry sucks technically (2010)
by account42 on Monday August 01, 2022 @04:03AM
(#32303285)
https://specifications.freedesktop.org/basedir-spec/basedir-...
freedesktop.org is that central documentation. Sure, there are applications that don't implemente that spec but it is not for there not being any documentation but either because the maintainers of those applications don't care or because the applications are older than the spec and moving configuration is not always trivial.
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