[Solved] On Mac .App TProcess Exec another .App? lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- Ozz_Nixon · 2018-06-02 15:55 I have the code working on Windows and Linux. However, due to Apple's App bundling, I am unable to have one Lazarus App, run Another Lazarus App. * Now what I would like to do is deploy MyProject.App in \Contents\MacOS\ also include the binaries of the other Apps (modules for this project). I have tried simply copying the binary into the MyProject.App/Contents/MacOS/ folder - can pass the Path to that Binary, and call the binary - without success. I have tried to copy the module (IM.app) folder to MyProject.App/Contents/MacOS/ folder - without success. Do I chain to Folder.App, or to Folder.App/Content/MacOS/Folder ? Current EXEC code: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure Exec(Prog:String;SpkLargeButton:TSpkLargeButton);var   Proc:TProcess; Begin   SpkLargeButton.Enabled:=False;   Proc:=TProcess.Create(Nil);{$IFDEF DARWIN}   Proc.CurrentDirectory:=E xtractFilePath(Paramstr(0))+Prog+'.app/Contents/MacOS/';   ShowMessage(Proc.CurrentDirectory);{$ELSE}   Proc.CurrentDirectory:=ExtractFilePath(Paramstr(0));{$ENDIF}   Proc.Executable:=Prog;   Proc.Active:=True;   while Proc.Running do begin      Application.ProcessMessages;      Sleep(1);   end;//   ShowMessage('Result code: '+IntToStr(Proc.ExitCode));   Proc.Free;   SpkLargeButton.Enabled:=True;end; ---------------------------------------------------------------------- Phil · 2018-06-02 16:32 Quote from: ozznixon on June 02, 2018, 05:55:51 pmI have the code working on Windows and Linux. However, due to Apple's App bundling, I am unable to have one Lazarus App, run Another Lazarus App. To launch app 2 from app 1, shell out and run like this: open path/to/app2.app ---------------------------------------------------------------------- Ozz_Nixon · 2018-06-02 16:41 Thanks @phil ... forgot about /usr/bin/open.  ;-) ---------------------------------------------------------------------- Ozz_Nixon · 2018-06-03 04:55 Quote from: Phil on June 02, 2018, 06:32:04 pmTo launch app 2 from app 1, shell out and run like this: open path/to/app2.app Any reason it is so much slower to chain to another executable under Mac OSX, compared to Windows or Linux? Especially when the Mac is a much faster system (physical hardware is). 3 second count, vs. the others feel like a DDL load (less than 500ms). Thanks! Ozz