[Lazarus] How to add & change application EnvironmentList ?

Michael Van Canneyt michael at freepascal.org
Wed Aug 26 21:22:04 CEST 2015



On Wed, 26 Aug 2015, FreeMan wrote:

> On 26.08.2015 21:22, Michael Van Canneyt wrote:
>> Here you must add
>>
>>      AProcess.Environment.Add('LD_LIBRARY_PATH='+fb_RootPath);
>> 
>> It is not necessary to execute the shell.
>> 
>> I use this technique myself, so I am sure it works.
>> 
>> Michael.
> Sorry Micheal, you miss understood me. first of all, thank you, I learned one 
> more think.
> My problem is, adding EnvironmentVariable to application.

I understand this. That is exactly what AProcess.Environment does.

Michael.





More information about the Lazarus mailing list