On Sun, 19 Jul 2020, Bo Berglund via fpc-pascal wrote:
or use TProcess.
https://www.freepascal.org/docs-html/current/fcl/process/tprocess.html
OK, thanks.
Then I will have to make a rewrite of the unit...
Possibly add IFDEF:s such that the Windows version remains and I
create equivalents for Linux using for example TProcess.
Thankfully there are only these two functions to deal with:
ExecAndWait() starts a program and waits for it to complete
ExecStart() starts a program and leaves it running
These are used exactly 1 time each in the full application...
All the more reason to dispense with the unit.
Less code to maintain.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal