Earlier quoted context omitted.
Windows also has an app data folder that contains a whole mishmash of stuff. And of course you have the registry. Part of the problem in Windows is that Program Files is write protected for security, so you can't store a local configuration file relative to the exe. So where does it go? I assume there must be documentation from Microsoft and Apple about best practices for this... I hope? To answer your last question:…
> Part of the problem in Windows is that Program Files is write protected for security, so you can't store a local configuration file relative to the exe. So where does it go? This hasn't been a problem since the first version of Windows that had a filesystem with such protections - that would be Windows NT 3.1. The correct location for such stuff is %USERPROFILE%\AppData\Roaming or ...\Local, depending on whether th…
The fact it happens so often suggests that the documentation isn't good enough.
> Of course.
At least Apple's pages is pretty clear and has some nice diagrams.
I think this page is more appropriate: https://docs.microsoft.com/en-us/windows/desktop/shell/csidl
It's reasonably well documented for UWP, though I can't find an equivalent for Windows: https://docs.microsoft.com/en-us/windows/uwp/design/app-sett...
Hence why I suggested that Qt has the right approach. It also has http://doc.qt.io/qt-5/qstandardpaths.html which abstracts out standard paths for cross-platform applications.