Use open to open webpage on osx.

This commit is contained in:
Bartosz Taudul 2019-04-04 13:58:13 +02:00
parent a7886cf82c
commit cffc6e21d3

View File

@ -44,6 +44,10 @@ static void OpenWebpage( const char* url )
{
#ifdef _WIN32
ShellExecuteA( nullptr, nullptr, url, nullptr, nullptr, 0 );
#elif defined __APPLE__
char buf[1024];
sprintf( buf, "open %s", url );
system( buf );
#else
char buf[1024];
sprintf( buf, "xdg-open %s", url );