mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 21:48:19 +02:00
IDE: cut handles when starting applications
git-svn-id: trunk@43391 -
This commit is contained in:
parent
96e13eb9d4
commit
4cc7a3f380
@ -404,6 +404,7 @@ constructor TLazarusProcess.Create(const LazarusPath: string;
|
||||
const CommandLine: string; EnvOverrides: TStringList);
|
||||
begin
|
||||
FProcess := TProcessUTF8.Create(nil);
|
||||
FProcess.InheritHandles := false;
|
||||
FProcess.Options := [];
|
||||
FProcess.ShowWindow := swoShow;
|
||||
FProcess.CommandLine := LazarusPath + CommandLine;
|
||||
|
@ -7376,6 +7376,7 @@ const
|
||||
begin
|
||||
StartLazProcess := TProcessUTF8.Create(nil);
|
||||
try
|
||||
StartLazProcess.InheritHandles:=false;
|
||||
// use the same working directory as the IDE, so that all relative file
|
||||
// names in parameters still work
|
||||
StartLazProcess.CurrentDirectory := ParamBaseDirectory;
|
||||
|
@ -367,6 +367,7 @@ begin
|
||||
try
|
||||
BrowserProcess:=TProcessUTF8.Create(nil);
|
||||
try
|
||||
BrowserProcess.InheritHandles:=false;
|
||||
BrowserProcess.CommandLine:=CommandLine;
|
||||
BrowserProcess.Execute;
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user