External Tools again fail to execute when the external tool is an .app application (+patch attached)
Original Reporter info from Mantis: Hansaplast
-
Reporter name: Hans Luijten
Original Reporter info from Mantis: Hansaplast
- Reporter name: Hans Luijten
Description:
With the latest SVN of Lazarus (62054), external .app bundles no longer execute (related to bug 0036314, but it resurfaced in a slightly different shape).
This is caused by the following line in exttools.pas:
if not ( FilenameIsAbsolute(s) and FileExistsUTF8(s) ) then ...
Under macOS external tools can also be directories (.app bundles).
I've created a patch for this that changes this line to:
if not ( FilenameIsAbsolute(s) and ( FileExistsUTF8(s) {IFDEF DARWIN}or DirectoryExistsUTF8(s){
ENDIF}) ) then
Steps to reproduce:
Execute an external tool that is an .app bundle from the External tools menu.
Note; without the patch in bug 0036417, you cannot select an .app bundle.
Additional information:
Lazarus 2.1.0 r62054M FPC 3.3.1 x86_64-darwin-cocoa (beta)
Mantis conversion info:
- Mantis ID: 36418
- OS: macOS
- OS Build: 10.1.5.1
- Build: r62054M
- Platform: Cocoa
- Version: 2.0.7 (SVN)
- Monitored by: » Hansaplast (Hans Luijten)