[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xdg-open in Emacs in Termux (Android)
From: |
Paul Eggert |
Subject: |
Re: xdg-open in Emacs in Termux (Android) |
Date: |
Tue, 15 May 2018 09:04:17 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 05/15/2018 01:20 AM, Jostein Kjønigsen wrote:
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 there is such a way, it isn't supported by xdg-utils. See, for example:
https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-utils-common.in
which uses the same method Emacs does in browse-url-can-use-xdg-open.
Perhaps Emacs could examine the value of the XDG_SESSION_TYPE
environment variable, or something like that. But this should be
coordinated with Termux and/or xdg-utils.