From: Lars Windolf <lars.lindner@gmail.com>
Subject: x-www-browser preference not working
Description: Fixed a bug where web browser doesn't launch
due to not having gnome desktop installed, or the wrong
web browser is launched due to not having an appropriate
fallback.
Origin: upstream, http://liferea.git.sourceforge.net/git/gitweb.cgi?p=liferea/liferea;a=commit;h=408a99b39535c4eb79983ebd2936a8eda5fff8b7
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668197
Last-Update: 2012-12-15
--- a/src/browser.c
+++ b/src/browser.c
@@ -244,6 +244,7 @@
 	struct browser	*browser;
 	gchar		*cmd = NULL;
 	gboolean	done = FALSE;	
+	gchar		*libname = NULL;
 	
 	g_assert (uri != NULL);
 	
@@ -255,8 +256,12 @@
 			done = browser_execute (cmd, uri, TRUE);
 			g_free (cmd);
 		} else {
-			/* the "default" browser has no command to use the GTK launch mechanism */
-			done = gtk_show_uri (NULL, uri, 0, NULL);
+			/* the "default" browser has no command to use the GTK
+			   launch mechanism, so we use gtk_show_uri() instead */
+			conf_get_str_value (BROWSER_ID, &libname);
+			if (g_str_equal (libname, "default"))
+				done = gtk_show_uri (NULL, uri, 0, NULL);
+			g_free (libname);
 		}
 	}
 	
