--- src/evilvte.c.orig 2010-04-22 00:15:33.000000000 +0200 +++ src/evilvte.c 2010-04-22 00:17:45.000000000 +0200 @@ -938,7 +938,7 @@ int menu_popup(GtkWidget *widget, GdkEventButton *event) { #ifdef MATCH_STRING_EXEC - if (event->button == 1) { + if (event->button == 2) { int tag = -1; #if TAB current_tab = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook), gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook))); @@ -947,11 +947,12 @@ matched_url = vte_terminal_match_check(VTE_TERMINAL(term->vte), event->x / vte_terminal_get_char_width(VTE_TERMINAL(term->vte)), event->y / vte_terminal_get_char_height(VTE_TERMINAL(term->vte)), &tag); if (matched_url != NULL) { char new_window_str[256]; - g_snprintf(new_window_str, sizeof(new_window_str), "%s %s &", MATCH_STRING_EXEC, matched_url); + g_snprintf(new_window_str, sizeof(new_window_str), "%s '%s' &", MATCH_STRING_EXEC, matched_url); system(new_window_str); matched_url = NULL; + return TRUE; } - return TRUE; + return FALSE; } #endif @@ -2317,7 +2318,7 @@ void do_match_open() { char new_window_str[256]; - g_snprintf(new_window_str, sizeof(new_window_str), "%s %s &", MENU_MATCH_STRING_EXEC, matched_url); + g_snprintf(new_window_str, sizeof(new_window_str), "%s '%s' &", MENU_MATCH_STRING_EXEC, matched_url); system(new_window_str); matched_url = NULL; }