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 <maniku...@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