Fix URL launching on MacOS

This commit is contained in:
Jon Evans
2020-02-22 09:47:51 -05:00
parent 41b7c62c15
commit 80233aece9
3 changed files with 22 additions and 1 deletions
+14
View File
@@ -40,3 +40,17 @@ void LaunchExternal( const wxString& aPath )
wxLaunchDefaultApplication( path );
#endif
}
void LaunchURL( const wxString& aUrl )
{
#ifdef __WXMAC__
wxString msg;
msg.Printf( "open %s", aUrl );
system( msg.c_str() );
#else
wxLaunchDefaultApplication( aUrl );
#endif
}