My purpose is to deploy user configuration files under:
- $HOME/.appname for Unix/Linux.
- \Documents and Settings\(user)\Application Data\AppName for Windows.
What are the API’s or group of functions that I can use, with the appropriate {$IFDEF}’s, so I can deploy my config files on the appropriate places?
Better use the correct function:
http://www.freepascal.org/docs-html/rtl/sysutils/getappconfigdir.html
result:=getappconfigdir(false)