summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-21 01:54:56 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-21 01:54:56 +0200
commitd0268f1cf8b9eafaf312bbbb442a5d06e01a3aac (patch)
treebaa043d2b7ab557a00d3696c95b9b3033e68388d /src/fe-gtk
parent9be155633f8c882bc8874a9d18d9fedf5395c0ef (diff)
Supposed fix for opening links on Mac
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/fe-gtk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c
index a523d63b..f762efe3 100644
--- a/src/fe-gtk/fe-gtk.c
+++ b/src/fe-gtk/fe-gtk.c
@@ -1050,6 +1050,8 @@ fe_open_url_inner (const char *url)
 {
 #ifdef WIN32
 	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
 	/* universal desktop URL opener (from xdg-utils). Supports gnome,kde,xfce4. */
 	if (try_browser ("xdg-open", NULL, url))