Lazarus (https://www.lazarus-ide.org/) has built-in support for the configuration folder ($XDG_CONFIG_HOME) in the user context and in the global context:
GetAppConfigDir() and GetAppConfigFile()
For more details see https://wiki.lazarus.freepascal.org/Multiplatform_Programmin...