MacOSX - Fixed some issues launching bundles/binaries

This commit is contained in:
marco. 2012-09-26 00:33:42 +02:00
parent 5fa61ecd25
commit 92f8f006fa
1 changed files with 2 additions and 2 deletions

View File

@ -423,9 +423,9 @@ int ExecuteFile( wxWindow* frame, const wxString& ExecFile, const wxString& para
#ifdef __WXMAC__
if( wxFileExists( FullFileName ) || wxDir::Exists( FullFileName ) )
{
ProcessExecute( wxT("open -a ") + ExecFile + wxT(" ") + param );
ProcessExecute( wxGetApp().GetExecutablePath() + wxT("/") + ExecFile + wxT(" ") + param );
} else {
ProcessExecute( wxT("open ") + param );
ProcessExecute( wxT("/usr/bin/open ") + param );
}
return 0;
#else