org-mode/lisp
Maxim Nikulin 5db61eb0f9 org.el: Avoid xdg-open silent failure
* lisp/org.el (org-open-file): Use 'pipe :connection-type instead of
'pty to prevent killing of background process on handler exit.
(Bug#44824)

Problem happens only in some desktop environments where configured
through `org-file-apps' or mailcap handlers launches actual viewer
(as defined in .desktop files and obtained from mimeapps.list)
in background.  E.g. xdg-open invokes "gio open" or kde-open5 for Gnome
or KDE accordingly and these handlers launches e.g. eog or okular in
background.  As soon as main process exits, temporary terminal session
created by `start-process-shell-command' is terminated.  As a result
background processes receive SIGHUP.

Previously command were executed with no buffer, so the change
does not affect "needsterminal" and "copiousoutput" mailcap features,
they are not supported as earlier.

If handler main process fails then show a message with exit reason.
Output (including error messages) is ignored as before.
Gtk application tends to report significant amount of failed asserts
hardly informative for majority of users.

TINYCHANGE
2021-03-21 10:38:39 -04:00
..
Makefile Move link-related core functions out of "org.el" 2019-03-10 18:00:27 +01:00
ob-C.el ob-C.el: Fix missing C, C++ declaration 2021-01-14 21:20:00 +01:00
ob-J.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-R.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-abc.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-asymptote.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-awk.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-calc.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-clojure.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-comint.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-coq.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-core.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-css.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-ditaa.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-dot.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-ebnf.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-emacs-lisp.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-eshell.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-eval.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-exp.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-forth.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-fortran.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-gnuplot.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-groovy.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-haskell.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-hledger.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-io.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-java.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-js.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-latex.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-ledger.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-lilypond.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-lisp.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-lob.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-lua.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-makefile.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-matlab.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-maxima.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-mscgen.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-ocaml.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-octave.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-org.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-perl.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-picolisp.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-plantuml.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-processing.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-python.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-ref.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-ruby.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-sass.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-scheme.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-screen.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-sed.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-shell.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-shen.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-sql.el ob-sql.el: Respect the value of sql-postgres-program 2021-02-03 23:08:21 -05:00
ob-sqlite.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-stan.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-table.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-tangle.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-vala.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-bbdb.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-bibtex.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-docview.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-eshell.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-eww.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-gnus.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-info.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-irc.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-mhe.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-rmail.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-w3m.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-agenda.el agenda: Restore org-agenda-goto-date's date argument 2021-02-21 01:18:07 -05:00
org-archive.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-attach-git.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-attach.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-capture.el capture: Fix handling of time range for :time-prompt 2021-02-01 23:18:03 -05:00
org-clock.el org-clock: fix runtime error in org-clock-in 2021-02-16 23:33:19 -05:00
org-colview.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-compat.el Remove Emacs 21 compat code for bookmark-after-jump-hook 2021-02-03 01:26:51 -05:00
org-crypt.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-ctags.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-datetree.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-duration.el duration: Avoid recursive load error 2021-01-04 00:30:00 -05:00
org-element.el element: Fix table.el parsing... again! 2021-01-05 18:06:31 +01:00
org-entities.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-faces.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-feed.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-footnote.el footnote: Silence byte-compiler under 'make single' 2021-02-03 23:07:33 -05:00
org-goto.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-habit.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-id.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-indent.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-inlinetask.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-install.el Use lexical-binding cookie in some trivial files 2021-01-24 22:36:30 -05:00
org-keys.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-lint.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-list.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-macro.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-macs.el org-macs: Allow specifying relative time in hours 2021-01-24 22:16:45 -05:00
org-mobile.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-mouse.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-num.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-pcomplete.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-plot.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-protocol.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-refile.el org-compat: Take in obsolete org-copy 2021-01-07 00:14:27 -05:00
org-src.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-table.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-tempo.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-timer.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org.el org.el: Avoid xdg-open silent failure 2021-03-21 10:38:39 -04:00
ox-ascii.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ox-beamer.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ox-html.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ox-icalendar.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ox-latex.el ox-latex.el: Use [Objective]Caml dialect 2021-01-24 23:05:53 -05:00
ox-man.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ox-md.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ox-odt.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ox-org.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ox-publish.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ox-texinfo.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ox.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00