From 756080831d355791ec5cf444ee08fc233ea6a316 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 27 Apr 2013 15:47:40 -0300 Subject: fix url opening on osx oops --- src/fe-gtk/fe-gtk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index fc3737fb..a0815301 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -979,7 +979,10 @@ 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/' */ + /* on Mac you can just 'open http://foo.bar/' */ + gchar open[512]; + g_snprinf (open, sizeof(open), "%s %s", g_find_program_in_path ("open"), url, NULL); + hexchat_exec (open); #else gtk_show_uri (NULL, url, GDK_CURRENT_TIME, NULL); #endif -- cgit 1.4.1