Supposed fix for opening links on Mac
This commit is contained in:
parent
9be155633f
commit
d0268f1cf8
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue