From 3afdfec4536f413df63a690964a9601076db7652 Mon Sep 17 00:00:00 2001 From: Kevin Hock Date: Fri, 22 Apr 2005 14:19:06 +0000 Subject: [PATCH] Add comment explaining the role of wxMacExecute git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/utilsunx.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 072a66b54a..33caa09fb5 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -315,7 +315,11 @@ long wxExecute( const wxString& command, int flags, wxProcess *process ) long lRc; #if defined(__DARWIN__) - if( (lRc = wxMacExecute(argv, flags, process)) != -1) + // wxMacExecute only executes app bundles. + // It returns -1 if the target is not an app bundle, thus falling through + // to the regular wxExecute for non app bundles. + lRc = wxMacExecute(argv, flags, process); + if( lRc != -1) return lRc; #endif -- 2.45.2