Subject: bug#9779: No usable browser found on Lubuntu

From: Jan Djärv <[email-masked]>
Date: Tue, 18 Oct 2011 11:58:56 +0200

18 okt 2011 kl. 08:55 skrev Juri Linkov:

>> Better would be if we can use xdg-open.  Could you check if xdg-open
>> works, and if so, how to adjust browse-url-can-use-xdg-open accordingly?
> 
> 
> It seems that "XDG_CURRENT_DESKTOP" is the most reliable variable
> to determine whether the current desktop is LXDE.
> 
> So I propose the following patch (that also adds a missing customizable
> option for `browse-url-xdg-open' in `browse-url-browser-function'):
> 
> === modified file 'lisp/net/browse-url.el'
> --- lisp/net/browse-url.el	2011-08-21 01:01:12 +0000
> +++ lisp/net/browse-url.el	2011-10-18 06:54:01 +0000
> @@ -247,6 +249,8 @@ (defcustom browse-url-browser-function
> 			 :value browse-url-default-windows-browser)
> 	  (function-item :tag "Default Mac OS X browser"
> 			 :value browse-url-default-macosx-browser)
> +	  (function-item :tag "Preferred by xdg-open from Free Desktop"
> +			 :value browse-url-xdg-open)
> 	  (function-item :tag "GNOME invoking Mozilla"
> 			 :value browse-url-gnome-moz)
> 	  (function-item :tag "Default browser"

This part of the patch is redundant.  browse-url-xdg-open is called by browse-url-default-browser.

	Jan D.