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

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Fri Jun 29 19:23:05 CEST 2018


Oh wow, talk about perfect timing. This afternoon I had to look into a
bug where our app also runs under a Citrix environment, and on reboot
(or new session) the settings are lost.

Thanks for the info Michael.

G.

On 06/28/18 07:49, Michael Van Canneyt wrote:
>> 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?
> https://stackoverflow.com/questions/4186153/api-for-determining-if-app-is-running-on-citrix-or-terminal-services
> https://helgeklein.com/blog/2014/08/app-running-citrix-xendesktopxenapp/
> 
> AppConfigDir uses
> 
> GetWindowsSpecialDir(CSIDL_LOCAL_APPDATA);
> 
> if you see you're under Citrix, you could use
> 
> GetWindowsSpecialDir(CSIDL_APPDATA);




More information about the fpc-pascal mailing list