On 06/20/2015 09:05 AM, fredvs wrote: > Hello. > > Sorry to come back with that story... ;-( > > I have used inside a script LD_LIBRARY_PATH` and at end runs the espeak > executable. > > So a Tprocess run the script. Why use a script? When you exec(), a parameter is available to set the environment variables[1]. Using a TProcess, try setting the `Environment` property before running it[2].
Hope it helps :-) [1] http://linux.die.net/man/3/exec [2] http://www.freepascal.org/docs-html/fcl/process/tprocess.environment.html -- Ewald _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal