emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in 9.5.3 org--file-default-apps


From: Craig STCR
Subject: Re: Bug in 9.5.3 org--file-default-apps
Date: Wed, 25 May 2022 07:38:36 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

Yeah I was wondering about that 'test' line.  I was wondering if, like you say, it gets ignored.  Or if the true / false value gets passed to some other logic that would, for example, add a '-nw' to the emacs command line.  I have no idea.

On 5/25/22 2:24 AM, Ihor Radchenko wrote:
Max Nikulin <manikulin@gmail.com> writes:

application/x-shellscript; emacs27 %s; test=test -n "$DISPLAY"
Notice that such entry will be ignored when DISPLAY is not set due to
specified "test" property. You need to pass X socket and pass or set
DISPLAY environment to you "headless" container.
Also, note that mailcap.el contains `mailcap-mailcap-entry-passes-test'
and that function is ... interesting. At least, it should work fine with
the test above, but only very limited number of tests appears to be
supported.

Best,
Ihor




reply via email to

[Prev in Thread] Current Thread [Next in Thread]