]> git.saurik.com Git - wxWidgets.git/commitdiff
Add comment explaining the role of wxMacExecute
authorKevin Hock <hockkn@yahoo.com>
Fri, 22 Apr 2005 14:19:06 +0000 (14:19 +0000)
committerKevin Hock <hockkn@yahoo.com>
Fri, 22 Apr 2005 14:19:06 +0000 (14:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/utilsunx.cpp

index 072a66b54a7f46a0d12f4e6de428ff1e5191e9cd..33caa09fb5690784f7c7d93fba68fc1cd7e3d9c9 100644 (file)
@@ -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