mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 00:19:22 +02:00
IDE: fixed path of startlazarus on darwin
git-svn-id: trunk@38113 -
This commit is contained in:
parent
cc0deae393
commit
ec3a8e1fee
11
ide/main.pp
11
ide/main.pp
@ -12522,7 +12522,7 @@ end;
|
|||||||
procedure TMainIDE.DoRestart;
|
procedure TMainIDE.DoRestart;
|
||||||
|
|
||||||
const
|
const
|
||||||
DarwinStartlazBundlePath = 'Resources/startlazarus.app/Contents/MacOS/';
|
DarwinStartlazBundlePath = 'lazarus.app/Contents/Resources/startlazarus.app/Contents/MacOS/';
|
||||||
|
|
||||||
procedure StartStarter;
|
procedure StartStarter;
|
||||||
var
|
var
|
||||||
@ -12542,13 +12542,12 @@ const
|
|||||||
Params := TStringList.Create;
|
Params := TStringList.Create;
|
||||||
ParseCommandLine(Params, Dummy, Unused);
|
ParseCommandLine(Params, Dummy, Unused);
|
||||||
//DebugLn('Done parsing CommandLine');
|
//DebugLn('Done parsing CommandLine');
|
||||||
{$ifndef darwin}
|
{$ifdef darwin}
|
||||||
|
ExeName := AppendPathDelim(EnvironmentOptions.GetParsedLazarusDirectory)+
|
||||||
|
DarwinStartlazBundlePath + 'startlazarus';
|
||||||
|
{$else}
|
||||||
ExeName := AppendPathDelim(EnvironmentOptions.GetParsedLazarusDirectory) +
|
ExeName := AppendPathDelim(EnvironmentOptions.GetParsedLazarusDirectory) +
|
||||||
'startlazarus' + GetExecutableExt;
|
'startlazarus' + GetExecutableExt;
|
||||||
{$else}
|
|
||||||
ExeName := ExpandUNCFileNameUTF8(EnvironmentOptions.GetParsedLazarusDirectory);
|
|
||||||
ExeName := AppendPathDelim( ExtractFilePath(ExeName) ) +
|
|
||||||
DarwinStartlazBundlePath + 'startlazarus' + GetExecutableExt;
|
|
||||||
{$endif}
|
{$endif}
|
||||||
if not FileExistsUTF8(ExeName) then begin
|
if not FileExistsUTF8(ExeName) then begin
|
||||||
IDEMessageDialog('Error',Format(lisCannotFindLazarusStarter,
|
IDEMessageDialog('Error',Format(lisCannotFindLazarusStarter,
|
||||||
|
Loading…
Reference in New Issue
Block a user