mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 16:29:38 +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;
|
||||
|
||||
const
|
||||
DarwinStartlazBundlePath = 'Resources/startlazarus.app/Contents/MacOS/';
|
||||
DarwinStartlazBundlePath = 'lazarus.app/Contents/Resources/startlazarus.app/Contents/MacOS/';
|
||||
|
||||
procedure StartStarter;
|
||||
var
|
||||
@ -12542,13 +12542,12 @@ const
|
||||
Params := TStringList.Create;
|
||||
ParseCommandLine(Params, Dummy, Unused);
|
||||
//DebugLn('Done parsing CommandLine');
|
||||
{$ifndef darwin}
|
||||
{$ifdef darwin}
|
||||
ExeName := AppendPathDelim(EnvironmentOptions.GetParsedLazarusDirectory)+
|
||||
DarwinStartlazBundlePath + 'startlazarus';
|
||||
{$else}
|
||||
ExeName := AppendPathDelim(EnvironmentOptions.GetParsedLazarusDirectory) +
|
||||
'startlazarus' + GetExecutableExt;
|
||||
{$else}
|
||||
ExeName := ExpandUNCFileNameUTF8(EnvironmentOptions.GetParsedLazarusDirectory);
|
||||
ExeName := AppendPathDelim( ExtractFilePath(ExeName) ) +
|
||||
DarwinStartlazBundlePath + 'startlazarus' + GetExecutableExt;
|
||||
{$endif}
|
||||
if not FileExistsUTF8(ExeName) then begin
|
||||
IDEMessageDialog('Error',Format(lisCannotFindLazarusStarter,
|
||||
|
Loading…
Reference in New Issue
Block a user