Supposed fix for opening links on Mac

This commit is contained in:
Berke Viktor 2012-10-21 01:54:56 +02:00
parent 9be155633f
commit d0268f1cf8
1 changed files with 2 additions and 0 deletions

View File

@ -1050,6 +1050,8 @@ fe_open_url_inner (const char *url)
{ {
#ifdef WIN32 #ifdef WIN32
ShellExecute (0, "open", url, NULL, NULL, SW_SHOWNORMAL); ShellExecute (0, "open", url, NULL, NULL, SW_SHOWNORMAL);
#elif defined __APPLE__
try_browser ("open", NULL, url); /* on Mac you can just 'open http://foo.bar/' */
#else #else
/* universal desktop URL opener (from xdg-utils). Supports gnome,kde,xfce4. */ /* universal desktop URL opener (from xdg-utils). Supports gnome,kde,xfce4. */
if (try_browser ("xdg-open", NULL, url)) if (try_browser ("xdg-open", NULL, url))