Use open to launch actions on macOS
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19859
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user