fix url opening on osx

oops
This commit is contained in:
TingPing 2013-04-27 15:47:40 -03:00
parent ffce6c5788
commit 756080831d
1 changed files with 4 additions and 1 deletions

View File

@ -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