ide: update bundle check to match fpc 3.2.0 and earlier. FileExists no longer return true for directories for macOS (unix) systems

git-svn-id: trunk@63598 -
This commit is contained in:
dmitry 2020-07-19 02:17:52 +00:00
parent 838de9a502
commit 3721c40a5d

View File

@ -7453,7 +7453,8 @@ begin
Process.CurrentDirectory := RunWorkingDirectory;
if RunAppBundle
and FileExistsUTF8(Process.Executable)
and (FileExistsUTF8(Process.Executable)
or DirectoryExistsUTF8(Process.Executable))
and FileExistsUTF8('/usr/bin/open') then
begin
// run bundle via open