mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 17:21:03 +02:00
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:
parent
bda8742a72
commit
d4e099a4f3
@ -370,17 +370,21 @@ begin
|
|||||||
{$IFDEF darwin}
|
{$IFDEF darwin}
|
||||||
if FileExistsUTF8(FLazarusPath+'.app') then begin
|
if FileExistsUTF8(FLazarusPath+'.app') then begin
|
||||||
// start the bundle instead
|
// start the bundle instead
|
||||||
|
{$IFDEF LCLCocoa}
|
||||||
|
FLazarusPath:= FLazarusPath+'.app/Contents/MacOS/'+ExtractFileName(FLazarusPath);
|
||||||
|
{$ELSE}
|
||||||
FLazarusPath:= FLazarusPath+'.app';// /Contents/MacOS/'+ExtractFileName(FLazarusPath);
|
FLazarusPath:= FLazarusPath+'.app';// /Contents/MacOS/'+ExtractFileName(FLazarusPath);
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
DebugLn(['TLazarusManager.Run starting ',FLazarusPath,' ...']);
|
DebugLn(['Info: (startlazarus) [TLazarusManager.Run] starting ',FLazarusPath,' ...']);
|
||||||
EnvOverrides:=TStringList.Create;
|
EnvOverrides:=TStringList.Create;
|
||||||
try
|
try
|
||||||
{$IFDEF Linux}
|
{$IFDEF Linux}
|
||||||
EnvOverrides.Values['LIBOVERLAY_SCROLLBAR']:='0';
|
EnvOverrides.Values['LIBOVERLAY_SCROLLBAR']:='0';
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF darwin}
|
{$IFDEF LCLCarbon}
|
||||||
FLazarusProcess :=
|
FLazarusProcess :=
|
||||||
TLazarusProcess.Create('open',
|
TLazarusProcess.Create('open',
|
||||||
' -a ' + FLazarusPath + ' --args ' + GetCommandLineParameters(FCmdLineParams, True)+' '+FCmdLineFiles,
|
' -a ' + FLazarusPath + ' --args ' + GetCommandLineParameters(FCmdLineParams, True)+' '+FCmdLineFiles,
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user