Michael Brand
2018-05-13 10:48:39 UTC
Hi all
With Emacs in Termux M-: (browse-url-xdg-open "http://gnu.org") opens
the URL in an Android browser. But M-: (browse-url-default-browser
"http://gnu.org") errors with "No usable browser found". This is
because even the most recent browse-url-can-use-xdg-open
#+begin_src emacs-lisp :eval no
(defun browse-url-can-use-xdg-open ()
"[...]"
(and (or (getenv "DISPLAY") (getenv "WAYLAND_DISPLAY"))
(executable-find "xdg-open")))
#+end_src
returns nil because none of the environment variables is set.
Should browse-url-can-use-xdg-open be changed to detect the situation of Termux?
Michael
With Emacs in Termux M-: (browse-url-xdg-open "http://gnu.org") opens
the URL in an Android browser. But M-: (browse-url-default-browser
"http://gnu.org") errors with "No usable browser found". This is
because even the most recent browse-url-can-use-xdg-open
#+begin_src emacs-lisp :eval no
(defun browse-url-can-use-xdg-open ()
"[...]"
(and (or (getenv "DISPLAY") (getenv "WAYLAND_DISPLAY"))
(executable-find "xdg-open")))
#+end_src
returns nil because none of the environment variables is set.
Should browse-url-can-use-xdg-open be changed to detect the situation of Termux?
Michael