Use open to launch actions on macOS

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19859
This commit is contained in:
Jon Evans
2025-02-07 20:39:42 -05:00
parent cd23dca90a
commit 66cbc8127b
+6 -1
View File
@@ -115,8 +115,13 @@ void PYTHON_MANAGER::Execute( const wxString& aArgs,
}
};
#ifdef __WXMAC__
wxString cmd = wxString::Format( wxS( "open -a %s --args %s" ), m_interpreterPath, aArgs );
#else
wxString cmd = wxString::Format( wxS( "%s %s" ), m_interpreterPath, aArgs );
long pid = wxExecute( cmd, wxEXEC_ASYNC, process, aEnv );
#endif
long pid = wxExecute( cmd, wxEXEC_ASYNC, process, aEnv );
if( pid == 0 )
{