Emacs: Report browser-url design flaw

master
Pierre Neidhardt 2018-02-12 17:25:21 +01:00
parent 900aefaa86
commit bd57f068a9
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@
(if (executable-find "xdg-open") 'browse-url-xdg-open 'browse-url-generic))
;;; If xdg-open is not found, set Emacs URL browser to the environment browser,
;;; or w3m if BROWSER is not set.
;;; TODO: Upstream should be smart at this, e.g. allow using xdg without a DE. Report.
;; REVIEW: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18986
(setq browse-url-generic-program (or
(executable-find (or (getenv "BROWSER") ""))
(when (executable-find "xdg-mime")