Browse-url: Comment on BROWSER variable
parent
00ff4895f7
commit
1181912ace
|
@ -144,9 +144,10 @@
|
|||
;; REVIEW: If xdg-open is not found, set Emacs URL browser to the environment browser,
|
||||
;; or w3m if BROWSER is not set.
|
||||
;; See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18986.
|
||||
;; In Emacs 26, the BROWSER variable is still not checked.
|
||||
(require 'browse-url)
|
||||
(setq browse-url-generic-program (or
|
||||
(executable-find (or (getenv "BROWSER") "")) ; TODO: Still need this in Emacs 26?
|
||||
(executable-find (or (getenv "BROWSER") ""))
|
||||
(when (executable-find "xdg-mime")
|
||||
(let ((desktop-browser (ambrevar/call-process-to-string "xdg-mime" "query" "default" "text/html")))
|
||||
(substring desktop-browser 0 (string-match "\\.desktop" desktop-browser))))
|
||||
|
|
Loading…
Reference in New Issue