From: "Jostein Kjønigsen" <jostein@secure.kjonigsen.net>
To: emacs-devel@gnu.org, Michael Brand <michael.ch.brand@gmail.com>
Subject: Re: xdg-open in Emacs in Termux (Android)
Date: Tue, 15 May 2018 10:20:51 +0200 [thread overview]
Message-ID: <1526372451.2841468.1372442024.5516108F@webmail.messagingengine.com> (raw)
In-Reply-To: <CALn3zoi1k2eYzdQiadk6nvW4nycdOzah_N3BJjSbe1uGrGHy9w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]
On Sun, May 13, 2018, at 12:48 PM, Michael Brand wrote:
> 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
Having a termux-specific solution doesn't really sound ideal. What about
Lill Debbie (Debian bootstrapper)? Linux Deploy? Termius on iOS?
Are there another ways to detect a xdg-compliant runtime environment
apart from these environment variables, which are also applicable to
environments like Termux? If so we should apply something as general
as possible.
--
Regards
Jostein Kjønigsen
jostein@kjonigsen.net 🍵 jostein@gmail.com
https://jostein.kjonigsen.net
[-- Attachment #2: Type: text/html, Size: 2299 bytes --]
next prev parent reply other threads:[~2018-05-15 8:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-13 10:48 xdg-open in Emacs in Termux (Android) Michael Brand
2018-05-15 8:20 ` Jostein Kjønigsen [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1526372451.2841468.1372442024.5516108F@webmail.messagingengine.com \
--to=jostein@secure.kjonigsen.net \
--cc=emacs-devel@gnu.org \
--cc=jostein@kjonigsen.net \
--cc=michael.ch.brand@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.