[Lazarus] How to add & change application EnvironmentList ?

FreeMan freeman35 at delphiturkiye.com
Wed Aug 26 16:39:00 CEST 2015


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;


On 26.08.2015 17:19, Michael Van Canneyt wrote:
>
>
> On Wed, 26 Aug 2015, FreeMan wrote:
>
>> Hello,
>> In kubuntu x64.
>> I need add and change Application EnvironmentList items. In unix. I 
>> mean, I need add this lines,
>> export LD_LIBRARY_PATH=/opt/firebird/Embeded/fb_embed_linux64
>> export FIREBIRD=/opt/firebird/Embeded/fb_embed_linux64
>> PATH=$PATH:/opt/firebird/Embeded/fb_embed_linux64
>> how to do this in lazarus? This is work just Application session
>
> You can set these in the Run|Run Parameters dialog, tab 'Environment'
>
> Michael. 





More information about the Lazarus mailing list