ide: update startlazarus for darwin. Not to rely on the exit code returned by open utility. As it's not lazarus returned code

git-svn-id: trunk@61402 -
This commit is contained in:
dmitry 2019-06-17 03:27:15 +00:00
parent 3123d5b440
commit d969404679

View File

@ -381,9 +381,15 @@ begin
EnvOverrides.Values['LIBOVERLAY_SCROLLBAR']:='0'; EnvOverrides.Values['LIBOVERLAY_SCROLLBAR']:='0';
{$ENDIF} {$ENDIF}
{$IFDEF darwin} {$IFDEF darwin}
// "open" process runs a bundle, but doesn't wait for it to finish execution
// "startlazarus" logic suggests that the Lazarus process would be waited
// and if the special 99 (ExitCodeRestartLazarus) code is received,
// would repeat the restart process.
// Since "open" doesn't play nice with "startlazarus" logic.
// The arguments would not indicate that lazarus was started by startlazarus
FLazarusProcess := FLazarusProcess :=
TLazarusProcess.Create('open', TLazarusProcess.Create('open',
' -a ' + FLazarusPath + ' --args ' + GetCommandLineParameters(FCmdLineParams, True)+' '+FCmdLineFiles, ' -a ' + FLazarusPath + ' --args --no-splash-screen ' + GetCommandLineParameters(FCmdLineParams, False)+' '+FCmdLineFiles,
EnvOverrides); EnvOverrides);
{$ELSE} {$ELSE}
FLazarusProcess := FLazarusProcess :=