Set x-www-browser as fallback. Make sure to launch the gnome default browser only when that option is selected and set x-www-browser as fallback for all situations.
It's better than the above patches because: 1. Don't need to remove browser options 2. All browser options now even if you don't have a gnome/gtk default browser configured. 3. x-www-browser fallback so you're always guaranteed a browser is launched so long as your package manager isn't broken and you have a web browser installed.
--- a/src/browser.c +++ b/src/browser.c @@ -137,7 +137,7 @@ } if (fallback && !cmd) /* Last fallback: first browser default */ - cmd = browsers[0].defaultplace; + cmd = browsers[6].defaultplace; } g_free (libname); @@ -244,6 +244,7 @@ struct browser *browser; gchar *cmd = NULL; gboolean done = FALSE; + gchar *libname; g_assert (uri != NULL); @@ -256,7 +257,9 @@ g_free (cmd); } else { /* the "default" browser has no command to use the GTK launch mechanism */ - done = gtk_show_uri (NULL, uri, 0, NULL); + conf_get_str_value (BROWSER_ID, &libname); + if (g_str_equal (libname, "default")) + done = gtk_show_uri (NULL, uri, 0, NULL); } }