GNU bug report logs -
#44824
27.1; Org export as pdf and open file does not open it
Previous Next
Reported by: Geraldo Biotti <gbiotti <at> gmail.com>
Date: Mon, 23 Nov 2020 17:41:02 UTC
Severity: normal
Tags: moreinfo
Found in version 27.1
Done: Kyle Meyer <kyle <at> kyleam.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 27/01/2021 10:36, Lars Ingebrigtsen wrote:
>
>> Executing the command "xdg-open /path/to/file.pdf" in a terminal
>> (Konsole) works.
The problem may be related to SIGHUP sent to children due to pty created
by emacs and closed as soon as the handler exits:
https://orgmode.org/list/ru4d75$11sc$1 <at> ciao.gmane.io/
As a workaround you could try to set another handler for PDF files in
mailcap, e.g. okular directly without xdg-open wrapper. Handler should
not try to launch actual application in background with immediate exit.
Currently start-process elisp function is used internally in
org-open-file. Low level (make-process :connection-type 'pipe ...)
should allow to avoid pty+SIGHUP problem. Maybe there are some
consequences of such change that I am not aware of.
This bug report was last modified 4 years and 58 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.