diff options
-rw-r--r-- | src/command/cmd_funcs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 59702fe3..7329046a 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -8921,10 +8921,14 @@ cmd_urlopen(ProfWin *window, const char *const command, gchar **args) return TRUE; } - gchar *argv[] = {prefs_get_string(PREF_URL_OPEN_CMD), args[0], NULL}; + gchar* cmd = prefs_get_string(PREF_URL_OPEN_CMD); + gchar *argv[] = {cmd, args[0], NULL}; + if (!call_external(argv, NULL, NULL)) { cons_show_error("Unable to open url: check the logs for more information."); } + + g_free(cmd); } else { cons_show("urlopen not supported in this window"); } |