My program needs to store some configuration files. The major operating systems seems to have a designated location to place those; for instance, on Freedesktop.org compliant systems, it will be the path stored in the $XDG_CONFIG_HOME
environment variable.
Is there a method (or a library) to obtain this configuration home directory across the major operating systems: Windows, OS X, Linux?