This question already has an answer here:
- Best way to save application settings 10 answers
Before writing this question, I'd like to state that I use Linux on a daily basis, which is why I'm creating this post to extend my knowledge of the other main operating systems I'm concerned about, Mac OS and Windows.
I'm developing a NodeJS application that needs to read a configuration in order to understand what to do, and allow the user to customize some of the inner workings of the application through this configuration.
However, this application is also cross-platform. And I know that operating systems have different file structures for their own convenience.
On a lot of Linux operating systems (if not all) I know that configurations are most commonly put in
~/.config/<app> or likely
~/.<app>/config if the first is not applicable...
Although, my knowledge does not expand far enough to know if that's the same for Windows and Mac OS?
What is considered the best place to put application configurations on Linux, Mac OS, and Windows?