Commit c78baef5 authored by Victor Ananjevsky's avatar Victor Ananjevsky

fix uri handling

parent 5fd1052e
......@@ -632,11 +632,12 @@ select_date_cb (GtkEntry * entry, GtkEntryIconPosition pos, GdkEventButton * eve
gtk_widget_grab_focus (GTK_WIDGET (entry));
}
static void
static gboolean
link_clicked_cb (GtkLinkButton *btn, gpointer data)
{
const gchar *uri = gtk_link_button_get_uri (btn);
open_uri (uri);
return TRUE;
}
static gboolean
......
......@@ -792,7 +792,7 @@ open_uri (const gchar *uri)
if (g_strstr_len (options.data.uri_handler, -1, "%s") != NULL)
cmdline = g_strdup_printf (options.data.uri_handler, uri);
else
cmdline = g_strdup_printf ("%s '$s'", options.data.uri_handler, uri);
cmdline = g_strdup_printf ("%s '%s'", options.data.uri_handler, uri);
run_command_async (cmdline);
g_free (cmdline);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment