From 4c8922d9e70cbebc54c2d5a36d52e79339feeff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 31 Oct 2013 17:46:59 +0100 Subject: [PATCH] Add support for launching URLs on MacOSX --- base/PCMain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/PCMain.cpp b/base/PCMain.cpp index 338316a57b..6d68ce32a8 100644 --- a/base/PCMain.cpp +++ b/base/PCMain.cpp @@ -232,6 +232,10 @@ void LaunchBrowser(const char *url) #elif __linux__ std::string command = std::string("xdg-open ") + url; system(command.c_str()); +#elif __APPLE__ + char temp[1024]; + sprintf(temp, "open %s", url); + system(temp); #else ILOG("Would have gone to %s but LaunchBrowser is not implemented on this platform", url); #endif