From: Michael Brand <michael.ch.brand@gmail.com>
To: emacs-devel@gnu.org
Subject: xdg-open in Emacs in Termux (Android)
Date: Sun, 13 May 2018 12:48:39 +0200 [thread overview]
Message-ID: <CALn3zoi1k2eYzdQiadk6nvW4nycdOzah_N3BJjSbe1uGrGHy9w@mail.gmail.com> (raw)
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
next reply other threads:[~2018-05-13 10:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-13 10:48 Michael Brand [this message]
2018-05-15 8:20 ` xdg-open in Emacs in Termux (Android) Jostein Kjønigsen
2018-05-15 16:04 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALn3zoi1k2eYzdQiadk6nvW4nycdOzah_N3BJjSbe1uGrGHy9w@mail.gmail.com \
--to=michael.ch.brand@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).