<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 26.08.2015 22:22, Michael Van Canneyt wrote:<br>
    <blockquote
      cite="mid:alpine.DEB.2.10.1508262121210.30487@home.telenet.be"
      type="cite">I understand this. That is exactly what
      AProcess.Environment does.
      <br>
      <br>
      Michael.
      <br>
    </blockquote>
    <br>
          AProcess.Environment.Add('LD_LIBRARY_PATH=' + fb_RootPath);<br>
          AProcess.Environment.Add('FIREBIRD=' + fb_RootPath);<br>
          for I := 0 to GetEnvironmentVariableCount do begin<br>
            AProcess.Environment.Add(GetEnvironmentString(I));<br>
            Form1.Memo1.Lines.Add(AProcess.Environment.Strings[I]);<br>
          end;<br>
    <br>
          Form1.Memo1.Lines.Add('');<br>
          Form1.Memo1.Lines.Add('-------------------------------');<br>
          Form1.Memo1.Lines.Add('--------------------');<br>
          Form1.Memo1.Lines.Add('');<br>
     Application.GetEnvironmentList(Form1.Memo1.Lines);<br>
    <br>
    this is result:<br>
    1-) AProcess.Environment result<br>
LD_LIBRARY_PATH=/opt/proje_laz/projeler/shared/firebird/Embeded/test/fb_embed_linux64/<br>
FIREBIRD=/opt/proje_laz/projeler/shared/firebird/Embeded/test/fb_embed_linux64/<br>
    KDE_FULL_SESSION=true<br>
    KDE_FULL_SESSION=true<br>
    GNOME_KEYRING_PID=1900<br>
    GS_LIB=/home/freeman/.fonts<br>
    <br>
    ................................<br>
    ................................<br>
    <br>
    2-)Application.GetEnvironmentList  result<br>
    KDE_FULL_SESSION=true<br>
    GNOME_KEYRING_PID=1900<br>
    GS_LIB=/home/freeman/.fonts<br>
    <br>
    <br>
    var AProcess: TProcess;<br>
    AProcess := TProcess.Create(Application);<br>
    <br>
    AProcess is different class, is that
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <span id="result_box" class="short_text" lang="en"><span class="hps">synchronous
        with main application's  </span></span>EnvironmentList ? My
    test is say no. It's not work in same session. For test I made bash
    sript, I wrote in export bla bla then execute it with tprocess, but
    not added to  <span id="result_box" class="short_text" lang="en"><span
        class="hps"> application's  </span></span>EnvironmentList.<br>
    <br>
  </body>
</html>