Fix URL launching on MacOS
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user