[Lazarus] How to add & change application EnvironmentList ?
Michael Van Canneyt
michael at freepascal.org
Wed Aug 26 17:35:34 CEST 2015
On Wed, 26 Aug 2015, FreeMan wrote:
> Thank you Michael,
> This is work just under IDE, I mean if application start from IDE, then this
> added variables getting from list. I need, when application run with out IDE,
> I want add or change values from in application.
> I tried this code, but not added to application's variable list
> AProcess.Executable := '/bin/sh';
> AProcess.Parameters.Text := 'export LD_LIBRARY_PATH=' + fb_RootPath;
> AProcess.Parameters.Add('export FIREBIRD LD_LIBRARY_PATH=' +
> fb_RootPath);
> AProcess.Parameters.Add('export PATH=$PATH:' + fb_RootPath);
> AProcess.Execute;
AProcess.Environment must be used for this.
Michael.
More information about the Lazarus
mailing list