startlazarus: cocoa: do not use open -a, execute bundle exe, else menu is not visible

git-svn-id: branches/fixes_2_0@63621 -
This commit is contained in:
mattias 2020-07-22 12:36:25 +00:00
parent bda8742a72
commit d4e099a4f3
2 changed files with 6 additions and 2 deletions

View File

@ -370,17 +370,21 @@ begin
{$IFDEF darwin}
if FileExistsUTF8(FLazarusPath+'.app') then begin
// start the bundle instead
{$IFDEF LCLCocoa}
FLazarusPath:= FLazarusPath+'.app/Contents/MacOS/'+ExtractFileName(FLazarusPath);
{$ELSE}
FLazarusPath:= FLazarusPath+'.app';// /Contents/MacOS/'+ExtractFileName(FLazarusPath);
{$ENDIF}
end;
{$ENDIF}
DebugLn(['TLazarusManager.Run starting ',FLazarusPath,' ...']);
DebugLn(['Info: (startlazarus) [TLazarusManager.Run] starting ',FLazarusPath,' ...']);
EnvOverrides:=TStringList.Create;
try
{$IFDEF Linux}
EnvOverrides.Values['LIBOVERLAY_SCROLLBAR']:='0';
{$ENDIF}
{$IFDEF darwin}
{$IFDEF LCLCarbon}
FLazarusProcess :=
TLazarusProcess.Create('open',
' -a ' + FLazarusPath + ' --args ' + GetCommandLineParameters(FCmdLineParams, True)+' '+FCmdLineFiles,

Binary file not shown.