From: Kevin Hock Date: Fri, 22 Apr 2005 14:19:06 +0000 (+0000) Subject: Add comment explaining the role of wxMacExecute X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3afdfec4536f413df63a690964a9601076db7652 Add comment explaining the role of wxMacExecute git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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