[Lazarus] How to add & change application EnvironmentList ?

Michael Van Canneyt michael at freepascal.org
Thu Aug 27 13:34:58 CEST 2015

On Thu, 27 Aug 2015, Petr Hlo┼żek wrote:

>> If TProcess can get extra parameter, why not add to current process? but I
>>> think this is compiler site problem, get variable function is there but
>>> there is no get functions.
> If you wan to add a variable to current process, please look here:
> http://sourceforge.net/p/cqrlog/code/HEAD/tree/branches/cqrlog_0.9/cqrlog.lpr
> and look at
> setenv(PChar('FIREBIRD'),PChar(ExtractFilePath(Application.Exename)),1);
> But you have to do that first, before all is incialized.

That only works on i386, because you use the libc unit.


More information about the Lazarus mailing list