mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 20:52:16 -05:00
fix url opening on osx
oops
This commit is contained in:
parent
ffce6c5788
commit
756080831d
@ -979,7 +979,10 @@ 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__
|
#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
|
#else
|
||||||
gtk_show_uri (NULL, url, GDK_CURRENT_TIME, NULL);
|
gtk_show_uri (NULL, url, GDK_CURRENT_TIME, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user