diff options
author | TingPing <tngpng@gmail.com> | 2013-04-27 15:47:40 -0300 |
---|---|---|
committer | TingPing <tngpng@gmail.com> | 2013-04-27 15:47:40 -0300 |
commit | 756080831d355791ec5cf444ee08fc233ea6a316 (patch) | |
tree | d42d16dd1caede7e90743e47dd7c295238f66746 /src | |
parent | ffce6c57880f9aa60fc309e59b28b8472747f94e (diff) |
fix url opening on osx
oops
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |