[fpc-pascal] GetAppConfigDir(False) in a Citrix environment

Bart bartjunk64 at gmail.com
Thu Jun 28 08:30:56 CEST 2018


Hi,

One of my apps also runs in a Citrix environment.
It does not retrieve it's settings.

If appears that GetAppConfigDir(False) returns
"C:\Users\<username>\AppData\Local".
(%LOCALAPPDATA%=C:\Users\902617\AppData\Local)
Whereas %APPDATA% points to "\\prof001\profiles\<username>\AppData",
and this is also the location where programs like FireFox write there
config files to.

While my program actually writes to
"C:\Users\<username>\AppData\Local\somsubfolder\programname.ini" (the
file exists and contains the content it should have), upon restart of
the program that ini file does not exist anymore.
So this location is pretty useless.

Any thoughts on retrieving the sensible place to store configuration
files in such an environment, or how to detect I'm in such an
environment?

Bart



More information about the fpc-pascal mailing list