browse-url-firefox-program: Add support for more Firefox variants.

* lisp/net/browse-url.el (browse-url-firefox-program): Add support for
Floorp, LibreWolf and Zen Browser.  (Bug#80398)
* etc/NEWS: Announce the change.
This commit is contained in:
Gabriel Santos 2026-02-14 17:03:26 -03:00 committed by Eli Zaretskii
parent 9aebe411de
commit 6ba77ede06
2 changed files with 12 additions and 1 deletions

View file

@ -1648,6 +1648,12 @@ to visit URLs by typing just 'RET' instead of 'C-c RET' in read-only buffers.
Conkeror (obsolete since Emacs 28.1), gnome-moz-remote (obsolete since
Emacs 25.1), and gnudoit (obsolete since Emacs 25.1).
*** 'browse-url-firefox-program' now supports LibreWolf and Zen Browser.
Occasionally, Emacs would not recognize LibreWolf as the system's
default browser. This happens in solving this by adding LibreWolf and
additionally Floorp and Zen Browser, two popular Firefox forks, to
'browse-url-firefox-program'.
** CL-Lib
+++

View file

@ -310,7 +310,12 @@ Defaults to the value of `browse-url-mozilla-arguments' at the time
(or (car candidates) default))
(defcustom browse-url-firefox-program
(browse-url--find-executable '("icecat" "iceweasel") "firefox")
(browse-url--find-executable '("floorp"
"icecat"
"iceweasel"
"librewolf"
"zen")
"firefox")
"The name by which to invoke Firefox or a variant of it."
:type 'string)