mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +02:00
startlazarus: start IDE on Mac via open, bug #32180, patch from Anthony Walter
git-svn-id: trunk@55548 -
This commit is contained in:
parent
9fae108464
commit
5f2e130bc6
@ -362,7 +362,7 @@ begin
|
||||
{$IFDEF darwin}
|
||||
if FileExistsUTF8(FLazarusPath+'.app') then begin
|
||||
// start the bundle instead
|
||||
FLazarusPath:=FLazarusPath+'.app/Contents/MacOS/'+ExtractFileName(FLazarusPath);
|
||||
FLazarusPath:= FLazarusPath+'.app';// /Contents/MacOS/'+ExtractFileName(FLazarusPath);
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
@ -372,10 +372,17 @@ begin
|
||||
{$IFDEF Linux}
|
||||
EnvOverrides.Values['LIBOVERLAY_SCROLLBAR']:='0';
|
||||
{$ENDIF}
|
||||
{$IFDEF darwin}
|
||||
FLazarusProcess :=
|
||||
TLazarusProcess.Create('open',
|
||||
' -a ' + FLazarusPath + ' --args ' + GetCommandLineParameters(FCmdLineParams, True)+' '+FCmdLineFiles,
|
||||
EnvOverrides);
|
||||
{$ELSE}
|
||||
FLazarusProcess :=
|
||||
TLazarusProcess.Create(FLazarusPath,
|
||||
GetCommandLineParameters(FCmdLineParams, True)+' '+FCmdLineFiles,
|
||||
EnvOverrides);
|
||||
{$ENDIF}
|
||||
finally
|
||||
EnvOverrides.Free;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user