1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-28 10:51:29 -08:00
emacs/lisp/net
Max Nikulin 920aaef9d9 mailcap.el: Avoid xdg-open silent failure
* lisp/net/mailcap.el (mailcap-view-file): Use 'pipe :connection-type
instead of 'pty to prevent killing of background process on handler
exit.  Avoid regression similar to Bug#44824.

Problem happens only in some desktop environments where mailcap handler
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 launch 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 as well, so the change
does not affect "needsterminal" and "copiousoutput" mailcap features,
they are not supported as earlier.

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

Copyright-paperwork-exempt: yes
2021-07-30 14:00:41 +02:00
..
ange-ftp.el Mention the -e switch in an ange-ftp doc string 2021-05-28 01:24:37 +02:00
browse-url.el Clarify some browse-url doc strings 2021-06-12 15:07:07 +02:00
dbus.el
dictionary-connection.el
dictionary.el
dig.el Allow `C-u M-x dig' to ask for a query type 2021-06-24 18:51:38 +02:00
dns.el
eudc-bob.el
eudc-export.el
eudc-hotlist.el
eudc-vars.el
eudc.el In files that use allout use it for all headings 2021-06-30 22:17:01 +02:00
eudcb-bbdb.el
eudcb-ldap.el
eudcb-mab.el
eudcb-macos-contacts.el
eww.el Add command in eww to toggle images 2021-04-12 10:31:46 +02:00
gnutls.el
goto-addr.el * lisp/**/*.el: Avoid positional args to define-minor-mode 2021-04-11 23:47:14 -04:00
hmac-def.el
hmac-md5.el
imap.el * lisp/net/imap.el (imap-mailbox-close): Use proper closures 2021-05-18 19:12:11 -04:00
ldap.el
mailcap.el mailcap.el: Avoid xdg-open silent failure 2021-07-30 14:00:41 +02:00
mairix.el Mairix: use 'mairix-search-options' as documented 2021-05-15 11:12:00 +03:00
net-utils.el Fix launching net-utils on MS-Windows 2021-05-15 12:38:01 +03:00
netrc.el
network-stream.el
newst-backend.el
newst-plainview.el
newst-reader.el
newst-ticker.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
newst-treeview.el
newsticker.el
nsm.el
ntlm.el
pop3.el
puny.el
quickurl.el
rcirc.el Fix an rcirc merge problem 2021-07-23 14:13:38 +02:00
rfc2104.el
rlogin.el
sasl-cram.el
sasl-digest.el
sasl-ntlm.el
sasl-scram-rfc.el
sasl-scram-sha256.el
sasl.el
secrets.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
shr-color.el
shr.el Add faces for shr heading elements (bug#49433) 2021-07-06 17:06:17 +02:00
sieve-manage.el * lisp/net/sieve-manage.el (sieve-sasl-auth): Use proper closures 2021-05-18 19:23:54 -04:00
sieve-mode.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
sieve.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
snmp-mode.el
soap-client.el
soap-inspect.el
socks.el
telnet.el
tramp-adb.el Use `file-name-concat' in Tramp 2021-07-25 12:05:01 +02:00
tramp-archive.el Code cleanup wrt file locks 2021-07-08 21:13:40 +02:00
tramp-cache.el Some minor improvements for share handling in tramp-gvfs.el 2021-07-26 20:51:57 +02:00
tramp-cmds.el Improve Tramp traces 2021-05-13 16:46:17 +02:00
tramp-compat.el Use `file-name-concat' in Tramp 2021-07-25 12:05:01 +02:00
tramp-crypt.el Preserve backward compatibility in Tramp 2021-07-14 18:36:14 +02:00
tramp-ftp.el
tramp-fuse.el Implement file locks for remote files (Bug#49261) 2021-07-07 18:36:53 +02:00
tramp-gvfs.el Some minor improvements for share handling in tramp-gvfs.el 2021-07-26 20:51:57 +02:00
tramp-integration.el Fix bug#48476 2021-05-22 17:51:07 +02:00
tramp-rclone.el Add remote-file-name-inhibit-locks 2021-07-13 19:50:05 +02:00
tramp-sh.el Fix extended attributes for Tramp's sudoedit method (bug#49724) 2021-07-25 14:14:49 +02:00
tramp-smb.el Use `file-name-concat' in Tramp 2021-07-25 12:05:01 +02:00
tramp-sshfs.el Make remote file locks more robust 2021-07-18 16:58:52 +02:00
tramp-sudoedit.el Adapt tramp-sudoedit.el for better testing 2021-07-26 09:55:30 +02:00
tramp-uu.el
tramp.el Fix bug#49773 in Tramp 2021-07-30 11:57:39 +02:00
trampver.el Sync with Tramp 2.5.1 2021-06-29 17:15:55 +02:00
webjump.el
zeroconf.el