From unknown Tue Jun 17 20:12:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#44824 <44824@debbugs.gnu.org> To: bug#44824 <44824@debbugs.gnu.org> Subject: Status: 27.1; Org export as pdf and open file does not open it Reply-To: bug#44824 <44824@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:12:27 +0000 retitle 44824 27.1; Org export as pdf and open file does not open it reassign 44824 emacs,org-mode submitter 44824 Geraldo Biotti severity 44824 normal tag 44824 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 23 12:40:14 2020 Received: (at submit) by debbugs.gnu.org; 23 Nov 2020 17:40:14 +0000 Received: from localhost ([127.0.0.1]:51045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khFoz-0007Mk-Tj for submit@debbugs.gnu.org; Mon, 23 Nov 2020 12:40:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:49066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khFoy-0007Mc-4K for submit@debbugs.gnu.org; Mon, 23 Nov 2020 12:40:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khFox-0000g2-R1 for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 12:40:11 -0500 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:34421) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khFou-0002Mo-CL for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 12:40:11 -0500 Received: by mail-lj1-x233.google.com with SMTP id y16so18950018ljk.1 for ; Mon, 23 Nov 2020 09:40:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=1AZjNz1veYcF8qkn6Qlzx6XJFZ3+vrDCjzj0GpYWZXY=; b=lu4bM6OIJ9D+XhvGTpX2iaz0c4vkk15Ef9+7AGXilDKfFXgYEENmXc+59plsXKcpAx wEjOnjR7YHfXbP87vJPMXyrZODa37+8Xn9GDiCqrx5l9oSJdivOW1ZHsoF81hdvVN4I/ QKPQctVDvd+Wg7F9/W3/hWcit6LN/OviRP6eIAUurVHLovr8hgbwAHCZnPlfqZQt+zrC lGU62ppkYuHxKosy2C60j6t7L8ianC0sqQpOSafaijB6oxCpFzlLs/ErlmAhD4rGDqgt L28rh9rV3gHNY+eb19x4JMtpx3QYqUffsu2ulJ+Kpm7T0CeDLCH9nu+/o3YHPChIycAN 3Tag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1AZjNz1veYcF8qkn6Qlzx6XJFZ3+vrDCjzj0GpYWZXY=; b=ME3RWI50tZdQBiRTtMyGEvjcLKzETlZDORB4MlyDMNwM5J9wjy6FB0V1+GI45JVf9v PW1b0CX1GJT3MuVdlO7Mwh2RxM5MN78b11CGYiTypVfwh4eWzXbXy+XViV/UsHVFE2aa 6kzaJs2OltM/0QjBN9loPOEM79droaiKBY9AmmP2dg9+glyZFry3QJ01eK2oTW5Np5wK JZLTkIPRqs9suMkl0ZlJheRp9YCqrmgaFKQnm0FQu6jjpCWRWvO3sZiC9CeQ1ju41l2g vH22t1cR2l1p2JRanpstUTcP6DA90iTAvIEasowozPshpQ13EdO9LbCRvyF5eqzgrhmH SmGA== X-Gm-Message-State: AOAM531SN3BD6HwzsGIQW3KN4Tu9U22KlBSNxdtTHKc8Qu4mP0wz/lfL 17QOTjh1MD2W+D2UmW+Sje/ESVRFLBx7qdcXnx2JTa8XIKn5NA== X-Google-Smtp-Source: ABdhPJxI6hOoTBPExe9xxs8BJNfmL6sVyB8Sewzqp/ZSNX14PfFrCaP2ZYy7EHa/4VLPzhqqcey0rhYGp/wNkSxvJTI= X-Received: by 2002:a05:651c:556:: with SMTP id q22mr211369ljp.127.1606153204960; Mon, 23 Nov 2020 09:40:04 -0800 (PST) MIME-Version: 1.0 From: Geraldo Biotti Date: Mon, 23 Nov 2020 18:40:12 +0100 Message-ID: Subject: 27.1; Org export as pdf and open file does not open it To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000003c903205b4c9af67" Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=gbiotti@gmail.com; helo=mail-lj1-x233.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --0000000000003c903205b4c9af67 Content-Type: text/plain; charset="UTF-8" Create a new org file and save it. Try to export to LaTeX as PDF file and open (C-c C-e l o) This is what *messages* says: (New file) Saving file /tmp/test2.tex... Wrote /tmp/test2.tex Processing LaTeX file test2.tex... PDF file produced. Running /usr/bin/xdg-open /tmp/test2.pdf...done The default PDF program (okular) appears to open (i see the icon, but not the window) and closes without showing anything. Working on Manjaro Linux 20.1: KDE Plasma Version: 5.20.3 KDE Frameworks Version: 5.76.0 Qt version: 5.15.1 Kernel Version: 5.8.18-1-MANJARO OS Type: 64 bit In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-28 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Manjaro Linux Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. (New file) Saving file /tmp/test.org... Wrote /tmp/test.org Saving file /tmp/test.tex... Wrote /tmp/test.tex Processing LaTeX file test.tex... PDF file produced. Running /usr/bin/xdg-open /tmp/test.pdf...done Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-wide-int --with-modules --with-cairo --with-harfbuzz 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: it_IT.UTF-8 value of $LC_NUMERIC: it_IT.UTF-8 value of $LC_TIME: it_IT.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Info Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail mule-util info tex-mode compile shell latexenc cl-extra help-mode ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree generator ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum url url-proxy url-privacy url-expand url-methods url-history mailcap shr url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs json map url-vars svg xml dom browse-url gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec password-cache epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search seq byte-opt gv bytecomp byte-compile cconv mail-utils mm-util mail-prsvr wid-edit ol-docview doc-view jka-compr image-mode exif dired dired-loaddefs ol-bibtex bibtex ol-bbdb ol-w3m org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities time-date subr-x noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat advice org-macs org-loaddefs format-spec find-func cal-menu easymenu calendar cal-loaddefs cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 192463 13711) (symbols 48 20487 1) (strings 32 76053 9166) (string-bytes 1 2456243) (vectors 16 32285) (vector-slots 8 365851 18818) (floats 8 220 130) (intervals 56 360 0) (buffers 1000 14)) --0000000000003c903205b4c9af67 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Create a new org= file and save it.
Try to export to LaTeX as PDF file and open (C-c C-e = l o)

This is what *messages* says:
(New file)
Saving file /tmp= /test2.tex...
Wrote /tmp/test2.tex
Processing LaTeX file test2.tex...=
PDF file produced.
Running /usr/bin/xdg-open /tmp/test2.pdf...done
The default PDF program (okular) appears to open (i see the icon, but= not
the window) and closes without showing anything.

Working on = Manjaro Linux 20.1:
KDE Plasma Version: 5.20.3
KDE Frameworks Version= : 5.76.0
Qt version: 5.15.1
Kernel Version: 5.8.18-1-MANJARO
OS Ty= pe: 64 bit



In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, = GTK+ Version 3.24.22, cairo version 1.17.3)
=C2=A0of 2020-08-28 built on= juergen
Windowing system distributor 'The X.Org Foundation', ve= rsion 11.0.12009000
System Description: Manjaro Linux

Recent mess= ages:
For information about GNU Emacs and the GNU system, type C-h C-a.<= br>(New file)
Saving file /tmp/test.org...
Wrote /tmp/test.org
Saving file /tmp/test.tex...
Wrote /tmp/tes= t.tex
Processing LaTeX file test.tex...
PDF file produced.
Running= /usr/bin/xdg-open /tmp/test.pdf...done

Configured using:
=C2=A0&= #39;configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib=C2=A0--localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-wi= de-int
=C2=A0--with-modules --with-cairo --with-harfbuzz 'CFLAGS=3D-= march=3Dx86-64
=C2=A0-mtune=3Dgeneric -O2 -pipe -fno-plt' CPPFLAGS= =3D-D_FORTIFY_SOURCE=3D2
=C2=A0LDFLAGS=3D-Wl,-O1,--sort-common,--as-need= ed,-z,relro,-z,now'

Configured features:
XPM JPEG TIFF GIF PN= G RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL GNUTLS LIB= XML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11= XDBE XIM MODULES THREADS LIBSYSTEMD JSON
PDUMPER LCMS2 GMP

Impor= tant settings:
=C2=A0 value of $LC_MONETARY: it_IT.UTF-8
=C2=A0 value= of $LC_NUMERIC: it_IT.UTF-8
=C2=A0 value of $LC_TIME: it_IT.UTF-8
= =C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-un= ix

Major mode: Info

Minor modes in effect:
=C2=A0 shell-di= rtrack-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
= =C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool= -bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t<= br>=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 bl= ink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryp= tion-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 buffer-read-only:= t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Lo= ad-path shadows:
None found.

Features:
(shadow sort mail-extr = emacsbug sendmail mule-util info tex-mode compile
shell latexenc cl-extr= a help-mode ox-odt rng-loc rng-uri rng-parse
rng-match rng-dt rng-util r= ng-pttrn nxml-parse nxml-ns nxml-enc xmltok
nxml-util ox-latex ox-icalen= dar ox-html table ox-ascii ox-publish ox
org-element avl-tree generator = ol-eww ol-rmail ol-mhe ol-irc ol-info
ol-gnus nnir gnus-sum url url-prox= y url-privacy url-expand url-methods
url-history mailcap shr url-cookie = url-domsuf url-util url-parse
auth-source cl-seq eieio eieio-core cl-mac= s eieio-loaddefs json map
url-vars svg xml dom browse-url gnus-group gnu= s-undo gnus-start
gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo p= arse-time iso8601
gnus-spec gnus-int gnus-range message rmc puny rfc822 = mml mml-sec
password-cache epa derived epg epg-config mm-decode mm-bodie= s mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win = gnus
nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums<= br>text-property-search seq byte-opt gv bytecomp byte-compile cconv
mail= -utils mm-util mail-prsvr wid-edit ol-docview doc-view jka-compr
image-m= ode exif dired dired-loaddefs ol-bibtex bibtex ol-bbdb ol-w3m org
ob ob-= tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote
org-src ob-c= omint org-pcomplete pcomplete comint ansi-color ring
org-list org-faces = org-entities time-date subr-x noutline outline
easy-mmode org-version ob= -emacs-lisp ob-core ob-eval org-table ol
org-keys org-compat advice org-= macs org-loaddefs format-spec find-func
cal-menu easymenu calendar cal-l= oaddefs cl-loaddefs cl-lib tooltip eldoc
electric uniquify ediff-hook vc= -hooks lisp-float-type mwheel term/x-win
x-win term/common-win x-dnd too= l-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomm= ent text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-= bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock= syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic c= ham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao k= orean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech europ= ean ethiopic indian
cyrillic chinese composite charscript charprop case-= table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nad= vice loaddefs
button faces cus-face macroexp files text-properties overl= ay sha1 md5
base64 format env code-pages mule custom widget hashtable-pr= int-readable
backquote threads dbusbind inotify lcms2 dynamic-settingsystem-font-setting font-render-setting cairo move-toolbar gtk x-toolkitx multi-tty make-network-process emacs)

Memory information:
((c= onses 16 192463 13711)
=C2=A0(symbols 48 20487 1)
=C2=A0(strings 32 7= 6053 9166)
=C2=A0(string-bytes 1 2456243)
=C2=A0(vectors 16 32285)=C2=A0(vector-slots 8 365851 18818)
=C2=A0(floats 8 220 130)
=C2=A0(= intervals 56 360 0)
=C2=A0(buffers 1000 14))
--0000000000003c903205b4c9af67-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 23 13:37:29 2020 Received: (at 44824) by debbugs.gnu.org; 23 Nov 2020 18:37:29 +0000 Received: from localhost ([127.0.0.1]:51124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khGiO-0002UJ-ND for submit@debbugs.gnu.org; Mon, 23 Nov 2020 13:37:29 -0500 Received: from mail-ej1-f52.google.com ([209.85.218.52]:37276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khGiN-0002U6-7Q for 44824@debbugs.gnu.org; Mon, 23 Nov 2020 13:37:27 -0500 Received: by mail-ej1-f52.google.com with SMTP id z5so4660142ejp.4 for <44824@debbugs.gnu.org>; Mon, 23 Nov 2020 10:37:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:disposition-notification-to:date :user-agent:mime-version:content-transfer-encoding:content-language; bh=U2oGuaxCuTTascCGrXHyNjQe30xeXEhTB8YheMt4oRk=; b=IqBzmNLitdUSWtADfFrU1k/N64FVP7nR3kEMPmqbP53lHn8TZNAS8Fd2LTkQ6Qg5ol ilZNCLAFX21F+T3spUpDXwrf9GVfQn7mn5Nq1N9BOhbPibMrp7jAKm1BAecBCY1Z1WoP bfNOagy2YRHBHx9KKyz6PNQSzulkKf3QhJs6Pj1fX+DsJssH3AbV4LP/HRZBjOecuv/Y y3deVldg8JFpS1vKLJwUdE0sgFzoRmWwwNzQX/agnLm49FqfFtwQcWCyTwbwiAOMNNWX YIRUU46xCVsXpSn398yMUzQZU9h+FdzY8qqlE45g4FEw1UTiqghwW42pCnZEAfXLoEQk gZbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id :disposition-notification-to:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=U2oGuaxCuTTascCGrXHyNjQe30xeXEhTB8YheMt4oRk=; b=lbNB6aQFY9iaNN5XfwLN0nLdqx42t021GsxCdP6PU55saL0C9WDwPXHR3pcmlMFqpv vDBLhAFES8oJ1seWdr6wBYVn6qSIqnSs05Cxn24rOF4yFi5omeb9S/sERjWUmE0WmGeG gXrZTRsetz4ks0CT6o1EyhcHdN1oWjl8uq3TROMqDaiagD7qrEHUZPILPq0Xs/Aefs0H DAW7FgOiva6CvaiFSJSIhIAwiO9x0HcwpQTS09D5tQIrpenxnNPTYFCSqRCuP2VyGKH7 KNYzg+rf7BSeY3PdZZorGxwj+1O5+kfOwtd+9idmivwIIUcb65nWoi6rU98B6nPtbr/e mANQ== X-Gm-Message-State: AOAM5324YDooQHIz/FK1w9tuSZeMvNE1M75WRV4rylmGjdld2wwsyaaa IT7spthsiyfgNbAKPxIicRBI7zA8+tfxfw== X-Google-Smtp-Source: ABdhPJyxqrV+UCIePvsNJ6bASi0nIbwKRF7FjQGxfN0CVvzSZ02wcb5T3HkYx8aFYr9RUPTXyQ9LqA== X-Received: by 2002:a17:906:4057:: with SMTP id y23mr799208ejj.299.1606156641076; Mon, 23 Nov 2020 10:37:21 -0800 (PST) Received: from [192.168.3.50] (host-87-3-132-161.retail.telecomitalia.it. [87.3.132.161]) by smtp.gmail.com with ESMTPSA id e12sm5536265edm.48.2020.11.23.10.37.20 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Nov 2020 10:37:20 -0800 (PST) To: 44824@debbugs.gnu.org From: "gbiotti@gmail.com" Subject: More info Message-ID: Date: Mon, 23 Nov 2020 19:37:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Content-Language: it X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Changing default program does not work: using evince instead of okular -> same results. Executing the command "xdg-open /path/to/file.pdf" in a terminal (Konsole) works. Executing the same command in Emacs via eshell DOES NOT WORK. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 26 22:36:56 2021 Received: (at 44824) by debbugs.gnu.org; 27 Jan 2021 03:36:56 +0000 Received: from localhost ([127.0.0.1]:43241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4bdY-00042Q-H1 for submit@debbugs.gnu.org; Tue, 26 Jan 2021 22:36:56 -0500 Received: from quimby.gnus.org ([95.216.78.240]:35578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4bdX-00042A-2J for 44824@debbugs.gnu.org; Tue, 26 Jan 2021 22:36:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bvCDsECIWOTYWiXwV91GFzzbJ3NPyfVvdmcgRgWsBpU=; b=O0jkOJclyvOdRqJEi6xiIbyaMc 8y28GLq4sXvCuIT3SiPI3708RCy/mfqTyCDMp5eDcvzLR0kdI+JQatrsCYMEY/JJoNeqaVk7n/R1G bw9qxHP2R8tcnB2MD5PtZ0qFRhINIdSrRe4I+de3hQaCNopVfNYyEI1CCSS9MURXz8Qo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4bdO-0000iF-Q4; Wed, 27 Jan 2021 04:36:49 +0100 From: Lars Ingebrigtsen To: gbiotti@gmail.com Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: X-Now-Playing: ... And The Native Hipsters's _To The Outside Of Everything: A Story of UK Post Punk 1977-1981 (3)_: "There Goes Concorde Again" Date: Wed, 27 Jan 2021 04:36:45 +0100 In-Reply-To: (gbiotti@gmail.com's message of "Mon, 23 Nov 2020 19:37:18 +0100") Message-ID: <87y2gfcape.fsf_-_@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "gbiotti@gmail.com" writes: > Executing the command "xdg-open /path/to/file.pdf" in a terminal > (Konsole) works. > > Executing the same command in Emacs via eshell DOES NOT WORK. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "gbiotti@gmail.com" writes: > Executing the command "xdg-open /path/to/file.pdf" in a terminal > (Konsole) works. > > Executing the same command in Emacs via eshell DOES NOT WORK. What happens if you execute that command in Emacs via eshell? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 26 22:37:03 2021 Received: (at control) by debbugs.gnu.org; 27 Jan 2021 03:37:03 +0000 Received: from localhost ([127.0.0.1]:43245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4bde-000430-PJ for submit@debbugs.gnu.org; Tue, 26 Jan 2021 22:37:03 -0500 Received: from quimby.gnus.org ([95.216.78.240]:35592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4bdc-00042O-P5 for control@debbugs.gnu.org; Tue, 26 Jan 2021 22:37:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cTIkGu1xYFtn271HFUKG20CC9+WbtCSDsF7ev2pNP0A=; b=H3+7fwGlAm52FvxfcH0P12gb3h dOVptjv2kSf6OFADMoXEkRgdhgIXdNFqT11gCbT93NH2yxBtrBjR4l6KPnLVmJY3h33O/EbrMZZ+e /M/r+/jM0frtlxTDIBqgHMYnx6/svNw0FboiQNqLfg1lfnBbTKGmAptTa5awxFaMy0dw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4bdV-0000iP-7l for control@debbugs.gnu.org; Wed, 27 Jan 2021 04:36:55 +0100 Date: Wed, 27 Jan 2021 04:36:52 +0100 Message-Id: <87wnvzcap7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #44824 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 44824 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 44824 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 03:33:38 2021 Received: (at 44824) by debbugs.gnu.org; 27 Jan 2021 08:33:39 +0000 Received: from localhost ([127.0.0.1]:43705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4gGg-0000yd-OH for submit@debbugs.gnu.org; Wed, 27 Jan 2021 03:33:38 -0500 Received: from mail-ed1-f48.google.com ([209.85.208.48]:35124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4gGe-0000yN-BC for 44824@debbugs.gnu.org; Wed, 27 Jan 2021 03:33:37 -0500 Received: by mail-ed1-f48.google.com with SMTP id j13so1404354edp.2 for <44824@debbugs.gnu.org>; Wed, 27 Jan 2021 00:33:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=zgU1agy6WwlAWyv1rxpDlQSAxolvALPfT69+ouzQpPM=; b=kTvulJSBDcKy5dJkBwQjSqdYKrYDKWqct6dqWl8LoETrKkd2O8TZH8NEMPAzYPFrQt 3U+V6pm9/OhX8mXsnrcfijbw5YdbXr1BGVm9MWKTBSncwxGtltBe3yuBr+iyClwfqE2u KdjZv03fpecmc7m8sCdY0WeLAyev4VeG0MzvltmQJtxHF/7IDgclhe3L8mBzUAszLIIO zzbkD94U6VKRw31bUBNKI6X5es2rpX/BkIdjXfgUdiHF98nShRMUt10yh4cvX4HtcI7V Y9NT2/iyR9olwy7J9502FIuxZJgg3Z9kjidDeENA0L4AsQjPkHajDlvZxU2dPQB8cxh+ Wy1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=zgU1agy6WwlAWyv1rxpDlQSAxolvALPfT69+ouzQpPM=; b=fYPnMc8K+F+NS/OsE4EAL1KcXDJjfWKM0ooX+nO1MveREYky3BYJm/kXA1KRNZRuSK 0zt6nRAnLcl6P9U+olCBYYJKMlNYizqY9s+BUoepgcpxP4i7EFSjMswYCzKhJoOkha8Z WvJDw8rU39jsu01ebK/aMFgiOpRyF1UpEtsD0ho9kWHqzrEenv6ELy/mN1D6Rkqcm829 /iiB+RSCL0ZuSRRG7fmI1j6KyhtuTsAtSFETUYl7XSDj9X61hOWiiq8o8yVZ1cNbE+BW YZvRRny6ZN0VOlLShNpQ/5dY1dQTMGT1OppVkqGMVSX7AWeR61APWhcilmRhqgi/BZWB xo9Q== X-Gm-Message-State: AOAM533gOHl4maD2ZSZFDu3pYYyvG+TRhWFdKpTVFAevU0z1aZaFnYlg pAk3Ja8/8P1W/QPA9/C2l9/uYc5qnfBJHQ== X-Google-Smtp-Source: ABdhPJxNwfq0pEJEXUGyvKRLP06QRqcvUAqrK5dPrXxwJ8Af96IIMLllpoYWWLPruZkQLj+LFqgsNQ== X-Received: by 2002:a05:6402:34c3:: with SMTP id w3mr8071561edc.3.1611736410375; Wed, 27 Jan 2021 00:33:30 -0800 (PST) Received: from [192.168.3.50] (host-79-36-126-117.retail.telecomitalia.it. [79.36.126.117]) by smtp.gmail.com with ESMTPSA id p15sm471089ejx.109.2021.01.27.00.33.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Jan 2021 00:33:29 -0800 (PST) Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: Lars Ingebrigtsen References: <87y2gfcape.fsf_-_@gnus.org> From: "gbiotti@gmail.com" Message-ID: Date: Wed, 27 Jan 2021 09:33:28 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <87y2gfcape.fsf_-_@gnus.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Content-Language: it X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Il 27/01/2021 04:36, Lars Ingebrigtsen writes: > "gbiotti@gmail.com" writes: > >> Executing the command "xdg-open /path/to/file.pdf" in a terminal >> (Konsole) works. >> >> Executing the same command in Emacs via eshell DOES NOT WORK. > What happens if you execute that command in Emacs via eshell? > The same as using C-c C-e l o "The default PDF program (okular) appears to open (i see the icon, but not the window) and closes without showing anything." From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 08:24:06 2021 Received: (at 44824) by debbugs.gnu.org; 27 Jan 2021 13:24:06 +0000 Received: from localhost ([127.0.0.1]:44043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4knl-00047k-Sx for submit@debbugs.gnu.org; Wed, 27 Jan 2021 08:24:06 -0500 Received: from mail-lf1-f42.google.com ([209.85.167.42]:39745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4jiQ-0006hx-Kx for 44824@debbugs.gnu.org; Wed, 27 Jan 2021 07:14:31 -0500 Received: by mail-lf1-f42.google.com with SMTP id h7so2322734lfc.6 for <44824@debbugs.gnu.org>; Wed, 27 Jan 2021 04:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:newsgroups:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=osIoRYQUzpbft95NAHfQt6mtI5IZxLk0apbL63q1Tds=; b=tfwb6Xep+C8RS2XS0OijEMsieK5iUGVDJW1KSQwuqDwcohp9MHNB/XMSBd7ZxKjh8q YQffoLQNbb5kR0ptfnK03pcbny1eHERCoR+vkJXNlSeRm4B9vX4/vG9fZ9Eu35FjfFQm 294o9rQpZs3P/Kpdb8dg5P9rCah6LDKdJjIF2U4dqJBX9boOPtTDuIlT0ngQoppn18vh OGR4RA0HM13HkAVg4oENLUaIeKqQIhCDuOYEtzd8/QSmfW3ULhe1BQ1TKX+FOokhUOmR IM/D/+Sg4Yzn6TpI7gK6RZMPnlLzxiuCwYdPdQb3ycHf4+p70yOp7Gkeag3Fh618rinj +BJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:newsgroups:references:cc:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=osIoRYQUzpbft95NAHfQt6mtI5IZxLk0apbL63q1Tds=; b=SnMtBicEfV+hHeizfDfoaOoZasEE0KKhSXctHBV8psPrhsJqbEK25iGsDbHEnFmv1P I0leHvQuk3zaO6lXGuX7kGxWmq3eXLEnxzr5Yq+xupBqBaOutYAut+oFJ18BYpZSOdkv eq9adSbhbiZU9VJnkR2rk6KvgstP4WejSt3iXyjoPqnqUGx6gNxVLMzUCYPCOg9kIbz/ DUJtihfEy/5TM7ezCuoggVTx6xY85IGxbZ5z5rd08VqqKuJT1bJmcVyt92kQyIMJp+38 rA3B423z0y8t3JjG9ALgh/oOQpo+6vUzPdWKCMqnna45tj+/OJgmmqaO6qE3WY/hKIf/ dkzQ== X-Gm-Message-State: AOAM530DzRhV07bn6WCi0wrZ4iUVsD9MRYL/5ZgQkcZYLv8cHfmLea9/ 1cH5JI01cyWR+XY7yxmcBbAEnsFO4e4= X-Google-Smtp-Source: ABdhPJz/jS2LUxRrhtVPkKp5SSK8qeQVRTJBvzJ/yoZgU36KNq65ThgS0RZm5pBhRpWoLVM2voTnGw== X-Received: by 2002:a19:700b:: with SMTP id h11mr4701367lfc.356.1611749664274; Wed, 27 Jan 2021 04:14:24 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id v21sm531047ljk.122.2021.01.27.04.14.23 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Jan 2021 04:14:23 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it Newsgroups: gmane.emacs.orgmode References: <87y2gfcape.fsf_-___1545.58022493205$1611718675$gmane$org@gnus.org> Message-ID: <0f4437bc-3e40-fe47-d6e7-d33c2fb7965a@gmail.com> Date: Wed, 27 Jan 2021 19:14:21 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87y2gfcape.fsf_-___1545.58022493205$1611718675$gmane$org@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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: Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) 1.2 MISSING_HEADERS Missing To: header -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.167.42 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.167.42 listed in wl.mailspike.net] -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 X-Mailman-Approved-At: Wed, 27 Jan 2021 08:24:04 -0500 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) 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@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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 08:34:03 2021 Received: (at 44824) by debbugs.gnu.org; 27 Jan 2021 13:34:03 +0000 Received: from localhost ([127.0.0.1]:44055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4kxO-0004NJ-RY for submit@debbugs.gnu.org; Wed, 27 Jan 2021 08:34:03 -0500 Received: from mail-lj1-f169.google.com ([209.85.208.169]:46385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4kxM-0004Mo-Hq for 44824@debbugs.gnu.org; Wed, 27 Jan 2021 08:34:01 -0500 Received: by mail-lj1-f169.google.com with SMTP id u11so2074801ljo.13 for <44824@debbugs.gnu.org>; Wed, 27 Jan 2021 05:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:cc:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=Ol0Ubdl5pN0LzjlHLDuGaDjbWAx6xGGcEYjpXxB8Cg0=; b=QTccA+zTI0KNrzSkKfK0Hy+lsxpGIZVBiRPQeEnmp4zz2gVlBU4fguLTm6fBXJJ/Vg ccKetIPhr7r7C9YUU46gPdHNJ0RVDb2otoPgO+mqT+Bpe8LkhUeztJKHXzTU2bFscj0B fTduJx/nIMxUCtl8ekwUzfilhGMQ6wxpImZWQc5GNgw2ctSryI8FVJC8fpBjlvYHkTf3 v3Jgpf4DSaTg9k64BgO6TEoyUJgGHLV4+4I9mkYyZDl31VlFgOv32M8TOcQCNQbavFQ3 gl8GUoWps0ChUXkVCLQMv+NjOtmYKy4vO7PS6HDOmNRzMkB5CVaaRvZR66iw5GJK7zk0 GDWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ol0Ubdl5pN0LzjlHLDuGaDjbWAx6xGGcEYjpXxB8Cg0=; b=qzb3KXRZp2ixGzEgptyczhLkm3ok+lnpPZuRrVjPo/mQcXmcgo848WkkdVr3TFlxT+ JRS5s2rMfcyrD9AmoIdKZMjRVEle+/uT67SmnGXoipo1YuuJTzoaKm+FWtSXKkzgCdxe Z7yaDa62uzXc0JtXU5xDviznj8fyDacK6r4ADJ2keFSgDdUliHJjEiIqrV2uyPk9pOT1 bScl4QYMP27jJj5LPwIMVqM40WdibF2lf0tUCb9okMzzTNOEHOdXgsMuC1yN4r3sEy6C BTwadvjk9fA3xDtJhPK9ZLdzfpiSf0Sp6fGkBGOB21zU8Ks1O5g4wNEnjSIHgDyxUQ8z mDug== X-Gm-Message-State: AOAM533PrKC/Xgbv0l60Ch7kc2XK0qfl/GHVROttzoesNIDWcY1yVxAu uzqGGGanrONJnSvptJhpaAvyAQu92iU= X-Google-Smtp-Source: ABdhPJxDZqmUbmeRaA81pWXtQVDdqzpf/kUSIlH65ylYYsXUbwNo6pB2emHJUplvjUC/nQK3bP5+hg== X-Received: by 2002:a2e:a303:: with SMTP id l3mr5703851lje.395.1611754434018; Wed, 27 Jan 2021 05:33:54 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id h9sm500459lfj.24.2021.01.27.05.33.52 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Jan 2021 05:33:53 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-___1545.58022493205$1611718675$gmane$org@gnus.org> <0f4437bc-3e40-fe47-d6e7-d33c2fb7965a@gmail.com> Message-ID: <1db41fd9-803e-497d-0c88-b6a5486a235a@gmail.com> Date: Wed, 27 Jan 2021 20:33:51 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <0f4437bc-3e40-fe47-d6e7-d33c2fb7965a@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I hope, the following link to another emacs-orgmode mail list archive will not be mangled by the debbugs web interface, unlike the previous one: https://lists.gnu.org/archive/html/emacs-orgmode/2021-0 [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) 1.2 MISSING_HEADERS Missing To: header -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.169 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.169 listed in wl.mailspike.net] -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) I hope, the following link to another emacs-orgmode mail list archive will not be mangled by the debbugs web interface, unlike the previous one: https://lists.gnu.org/archive/html/emacs-orgmode/2021-01/msg00327.html From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 11:21:33 2021 Received: (at 44824) by debbugs.gnu.org; 27 Jan 2021 16:21:33 +0000 Received: from localhost ([127.0.0.1]:45921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4nZV-0000Wr-C7 for submit@debbugs.gnu.org; Wed, 27 Jan 2021 11:21:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4nZT-0000Wb-Gy for 44824@debbugs.gnu.org; Wed, 27 Jan 2021 11:21:32 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49911) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4nZO-0007QH-CD for 44824@debbugs.gnu.org; Wed, 27 Jan 2021 11:21:26 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1l4nZM-00035r-NJ; Wed, 27 Jan 2021 11:21:24 -0500 From: Glenn Morris To: 44824@debbugs.gnu.org Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-___1545.58022493205$1611718675$gmane$org@gnus.org> <0f4437bc-3e40-fe47-d6e7-d33c2fb7965a__46427.8968678386$1611759102$gmane$org@gmail.com> X-Spook: Bush Wired Methamphetamine Mutation Cyber Command TWA X-Ran: |1k,S7f.Uy[SWyE`&2MB$[hE=4Hq (Maxim Nikulin's message of "Wed, 27 Jan 2021 19:14:21 +0700") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44824 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ref eg https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25234#8 https://bugzilla.gnome.org/show_bug.cgi?id=652262 https://gitlab.gnome.org/GNOME/glib/-/issues/1208 and others going back over a decade. I think Emacs should have a PROBLEMS entry about this. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 22:02:30 2021 Received: (at 44824) by debbugs.gnu.org; 28 Jan 2021 03:02:30 +0000 Received: from localhost ([127.0.0.1]:46644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4xZm-0003UF-BH for submit@debbugs.gnu.org; Wed, 27 Jan 2021 22:02:30 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4xZk-0003P5-Dc for 44824@debbugs.gnu.org; Wed, 27 Jan 2021 22:02:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=C9ZCZq11LqfWNgHMvoj38yIWJknIArtjX8kpy0BK/Ss=; b=NrSgCuh5KsJw2Lucowmr6xoBOu +ThCwvWkprMYFYl7Be7SdLfYybu5Pt/2rmJsMl2lxCiJoDS/zEWuACmg/ogCZcCJ98Z5UkOUH2jZE iAiXjzUHz0xkr2UfYLgJsRsMmwPGwJi0co/CbpNBRsPUpvnal7OFwx3lBslgYDxV9GTw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4xZY-0003IW-5w; Thu, 28 Jan 2021 04:02:22 +0100 From: Lars Ingebrigtsen To: gbiotti@gmail.com Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> X-Now-Playing: Joe Jackson's _Fool_: "Alchemy" Date: Thu, 28 Jan 2021 04:02:14 +0100 In-Reply-To: (gbiotti@gmail.com's message of "Wed, 27 Jan 2021 09:33:28 +0100") Message-ID: <87a6st7oi1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "gbiotti@gmail.com" writes: > The same as using C-c C-e l o > "The default PDF program (okular) appears to open (i see the icon, but not > the window) and closes without showing anything." Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "gbiotti@gmail.com" writes: > The same as using C-c C-e l o > "The default PDF program (okular) appears to open (i see the icon, but not > the window) and closes without showing anything." If I do $ xdg-open ./doc/lispintro/cons-2.pdf after `M-x shell', "Document Viewer" is opened as normal. You don't get any output from xdg-open or anything in the shell buffer? Glenn Morris writes: > Ref eg https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25234#8 > https://bugzilla.gnome.org/show_bug.cgi?id=652262 > https://gitlab.gnome.org/GNOME/glib/-/issues/1208 > and others going back over a decade. > I think Emacs should have a PROBLEMS entry about this. Yeah, calling xdg-open (and expecting it not to exit) is a known problem, but here it seems that xdg-open doesn't even work from *shell*, which is very odd. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 06:20:46 2021 Received: (at 44824) by debbugs.gnu.org; 28 Jan 2021 11:20:46 +0000 Received: from localhost ([127.0.0.1]:47386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l55Ly-0007nP-7x for submit@debbugs.gnu.org; Thu, 28 Jan 2021 06:20:46 -0500 Received: from mail-ed1-f45.google.com ([209.85.208.45]:44669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l55Lw-0007nC-9l for 44824@debbugs.gnu.org; Thu, 28 Jan 2021 06:20:45 -0500 Received: by mail-ed1-f45.google.com with SMTP id c2so6124927edr.11 for <44824@debbugs.gnu.org>; Thu, 28 Jan 2021 03:20:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=W9vbsn+pxhvETMDRNxxxSJNCLeSSvoZJNl2KwRJBVl0=; b=uRuCbn2DMtn1Tld+wRER24FIJS7hMB4U3k2ZMgLCsmIJsHVTNFGsBkyz/p0myMVnQI zo9MMgyJwCwyNjJNv8zNTgHmOIIR7g7N4ezgpdFEVm5ub48na6B+Owq4yTD+knh73BbR mnkvtzWljAxPCXKYnEVKumqWNSfdKagPv/ZZL6CbvoEpE53v4Kw++rC3OGGJLdYiRQcb nM2Ov/ZC2g0q5W9pD57RVAnlIdSuHcjlmnrfPz8ZqwSge057b4WYDQPZhrCnA9KZZzRF Mdiw97YyrD2XqC74MfSP7iWwj6jTAchQOFokR3pP54OcSZbNRVWkiNRMQ4jVR8ZR07Mg SWXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=W9vbsn+pxhvETMDRNxxxSJNCLeSSvoZJNl2KwRJBVl0=; b=ueCAeiFFXbMJs+LYTSbnfgHggjecJmasjaNIZhdAoUTm4z1m8aiKlxUPxT55KrjM3l TEArDRRhZ5H9Jks6nce7Zz2frdXQSvSSB4JVZNIFMnImGVXBRXYlUrdu0Iajq/OJRB4n Jgsn33NBQduLyrIUChulhwbGValbRpxndXYZc0U8kroEq9Tjd/mPP3uKG0SD5NapISZ9 J+mm9WIk9ObaOm9jewY2OG5H71R80i0+b992wc+a329IkDl4+t5aJThl2qq7MZXDK0Y1 oX7njp4vSfyGCX/hiFdYZwAQeVFZ4ydCguv5xcnHopLX4yv/eelLYUDq4t93eMtZpDTz pVBg== X-Gm-Message-State: AOAM531b8Z31OunKOvbcsnJNC60jF4un5wtsFUOzy/C2n13fWNtyb31H Wmx52dhvVb6DzR/XmbTg+9NLIcs8ZkA= X-Google-Smtp-Source: ABdhPJxbmzLvhy7wrpcMKYx/2mQImk/PnTEN1mN2qx1bP2fk6svwp82+wuZ1XBTpSFgsn7Zjdkfp+Q== X-Received: by 2002:a50:fd83:: with SMTP id o3mr13247960edt.359.1611832838354; Thu, 28 Jan 2021 03:20:38 -0800 (PST) Received: from [192.168.3.50] (host-79-36-126-117.retail.telecomitalia.it. [79.36.126.117]) by smtp.gmail.com with ESMTPSA id t11sm2717038edd.1.2021.01.28.03.20.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jan 2021 03:20:37 -0800 (PST) Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: Lars Ingebrigtsen References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> From: "gbiotti@gmail.com" Message-ID: Date: Thu, 28 Jan 2021 12:20:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <87a6st7oi1.fsf@gnus.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Content-Language: it X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Il 28/01/2021 04:02, Lars Ingebrigtsen ha scritto: > "gbiotti@gmail.com" writes: > >> The same as using C-c C-e l o >> "The default PDF program (okular) appears to open (i see the icon, but not >> the window) and closes without showing anything." > If I do > > $ xdg-open ./doc/lispintro/cons-2.pdf > > after `M-x shell', "Document Viewer" is opened as normal. > > You don't get any output from xdg-open or anything in the shell buffer? > > Glenn Morris writes: > >> Ref eg https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25234#8 >> https://bugzilla.gnome.org/show_bug.cgi?id=652262 >> https://gitlab.gnome.org/GNOME/glib/-/issues/1208 >> and others going back over a decade. >> I think Emacs should have a PROBLEMS entry about this. > Yeah, calling xdg-open (and expecting it not to exit) is a known > problem, but here it seems that xdg-open doesn't even work from *shell*, > which is very odd. > I have no more ideas. The problem arise even exporting and opening html, so it's not the file type. Doing a better search I found this: https://forum.manjaro.org/t/xdg-open-or-kde-open-doesnt-work-when-called-from-emacs/39918 Same problem, but without an answer. If needed I can make a video of what happen (if so please explain where to upload it). From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 06:31:18 2021 Received: (at 44824) by debbugs.gnu.org; 28 Jan 2021 11:31:18 +0000 Received: from localhost ([127.0.0.1]:47396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l55W9-0008DG-RA for submit@debbugs.gnu.org; Thu, 28 Jan 2021 06:31:18 -0500 Received: from mail-ej1-f46.google.com ([209.85.218.46]:40980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l55W8-0008D2-UT for 44824@debbugs.gnu.org; Thu, 28 Jan 2021 06:31:17 -0500 Received: by mail-ej1-f46.google.com with SMTP id g12so7205526ejf.8 for <44824@debbugs.gnu.org>; Thu, 28 Jan 2021 03:31:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=FgCNY015kEadaRxU+ih0CXs/A/LGDkRsaK0HhpACU50=; b=SYxhin83Wlt/Y7uEm1y1+ccIVKjpKwdywT0Cp4xJODlAawmpKKSCh8mnFKoHKmGbch Ij57UKQba1gnyXo6czWyQ2OW6RHnBF5ytz0H/CW9/XGVUjIG1JCKYs2NYR5nQ0yJz5ph 5x0OSh17VkllrpOnnSPtjgO5ocEudEu3vkoROXSzRd9dyNlxvG162unPKbAGbUiMDzf2 5VnX2/O4KI/3R8zGq+wYbLCO/jWAZLslHZwGR+sZZDnUV9fclwTptbdJvAXEJg2kN0lO dmUkd1BA2zGNlwBlveGW/q+nidZoTo3fGnQfYNmmrHxe86h5vTdnuvNwWEhoiklfO7tg JHnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=FgCNY015kEadaRxU+ih0CXs/A/LGDkRsaK0HhpACU50=; b=X4GpeEVUZJeLTi6xXMppH0HsOjdeaslU6I1YaqdhLl/GYFidGZAGyWP/sp5Gwcx+6a Jy8/hMsLtNnsFwJlEX4TjlOA+5UQK1yuyOXzDFvxgk4eLekNh0BDMHJbm0joEexk3vCi M+w6Lbkbwz5brel3vxCCaVB0Qjz8ql8Kz+GOpFMoRBp9oVGXgwgjcL1CzW6FUKohMUhH 1vjCw0qshxb14yTix5W5ptRcqOE4ZjVn734/krX/vqEtUtZpIDl1hFPoyFL3I0rdcvU/ oNSUrweYNr/lCZhrYdMcuHw2Afrnw2I2tyffRZNKgOgUwDYzKIZ9sXqkYjSS1gCis+u/ ZjaQ== X-Gm-Message-State: AOAM531EmUsNRZctD9+NlyOvkQKWmmuQPciHJZNCSKD2CYNVPaerK3qn Q2u6uZ9TDXVY5WKNAspHAqZTWaQm1e0= X-Google-Smtp-Source: ABdhPJxy5dK16on84gzYqeL9KROfornOed1ZFBC5Y/ecMMQl83RjmqaQhAMOljOxhA+CAw9LKB+j9Q== X-Received: by 2002:a17:906:8611:: with SMTP id o17mr10546697ejx.145.1611833471054; Thu, 28 Jan 2021 03:31:11 -0800 (PST) Received: from [192.168.3.50] (host-79-36-126-117.retail.telecomitalia.it. [79.36.126.117]) by smtp.gmail.com with ESMTPSA id b26sm2888224edy.57.2021.01.28.03.31.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jan 2021 03:31:09 -0800 (PST) Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: Lars Ingebrigtsen References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> From: "gbiotti@gmail.com" Message-ID: <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> Date: Thu, 28 Jan 2021 12:31:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <87a6st7oi1.fsf@gnus.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Content-Language: it X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Il 28/01/2021 04:02, Lars Ingebrigtsen writes: > "gbiotti@gmail.com" writes: > >> The same as using C-c C-e l o >> "The default PDF program (okular) appears to open (i see the icon, but not >> the window) and closes without showing anything." > If I do > > $ xdg-open ./doc/lispintro/cons-2.pdf > > after `M-x shell', "Document Viewer" is opened as normal. > > You don't get any output from xdg-open or anything in the shell buffer? > > Glenn Morris writes: > >> Ref eg https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25234#8 >> https://bugzilla.gnome.org/show_bug.cgi?id=652262 >> https://gitlab.gnome.org/GNOME/glib/-/issues/1208 >> and others going back over a decade. >> I think Emacs should have a PROBLEMS entry about this. > Yeah, calling xdg-open (and expecting it not to exit) is a known > problem, but here it seems that xdg-open doesn't even work from *shell*, > which is very odd. > More info: As per bug 25234, using 'M-! xdg-open /tmp/test.pdf', 'M-& xdg-open /tmp/test.pdf' and 'M-& xdg-open /tmp/test.pdf && sleep 3' I get same results as reported. If I try in eshell buffer 'xdg-open /tmp/test.pdf && sleep 3' my cursor blinks with the Okular icon for a few seconds and then nothing happens. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 11:10:35 2021 Received: (at 44824) by debbugs.gnu.org; 28 Jan 2021 16:10:35 +0000 Received: from localhost ([127.0.0.1]:49616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l59sR-0003DG-DJ for submit@debbugs.gnu.org; Thu, 28 Jan 2021 11:10:35 -0500 Received: from mail-lf1-f52.google.com ([209.85.167.52]:42141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l59sM-0003D0-64 for 44824@debbugs.gnu.org; Thu, 28 Jan 2021 11:10:34 -0500 Received: by mail-lf1-f52.google.com with SMTP id h12so8289837lfp.9 for <44824@debbugs.gnu.org>; Thu, 28 Jan 2021 08:10:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=JZ1zMFVVrP+J2Fxn/di9yaS5j3koJGfckmrGMr6SOa4=; b=RDMGatqNpf/92NQJ+tGiu51iELpMgLvqy5/0gyVYaODQV3nKs1B2sAV17Fu+3Z8HhF QteZhGu/49OLau+iulEVNbAy14bdSxaVUWbXPiws4J7Dd8B1L1ylBHUdWXReZAAUCGsy v0HQ4KL+falsJ/neijSr5cypZ7eOtzdPUyY+p1jGRBrK4dg3F67zgB0yUFTRus+tYaBc DEaS0x1uanw7yl9PX4uokRkd1SPgkBqovyJ1CbBdzsYlKMS5I4cT5gIwNcts7dJeBA4i MUhA+D1++K/Q369gmhOUWgls153rQ3BjFTMsefgmJx2mcc8hgCAjjvpB9L8IHZ+dkak5 eUSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JZ1zMFVVrP+J2Fxn/di9yaS5j3koJGfckmrGMr6SOa4=; b=YzpMIfLktlqUKnFAmbSXh8KnLhAkqYRy7V4cfh45MHFtCJfPMA1zqO+qRWUg9A686k aL/uwqkHMtKhP0pskIbpZeVWrnX5n3uqubLwYwdzfXTMvprVrmtMHRAW00N2M1ZuIIiz MNKTcldXuvs2lF3ByGHZ/9c0YW0BH2aPqddtkOqWfErtQb/rAoJ4INYCQqJAkV2BvNzW TKpAJF8YZ00QxxKNUyZv63dS4afnJW74pDX8/5q6qRhDygzvgnjCuAm5L5FPbP+ahYFv iSEJi65uhT4qd4J47Jy06dUZKbBcKxhAF9Yw0QJfKX/Z/SKvLOKiZQznrZWv9EVn/VEJ tjTA== X-Gm-Message-State: AOAM532YkXjTc+dOnjlvhqzHJEgf6fsb1Z9cYe8Opccs84ZXMtndOyBw zns4D6srPfdt6GumFyp2WIcrr56t45U= X-Google-Smtp-Source: ABdhPJxmu1AKvdshe0uloSE5J0Mf0ax4/J51F3Y+cF70bRAyurl7tC9p9B0WbqJWp7FayeB2zRRoUA== X-Received: by 2002:ac2:44ad:: with SMTP id c13mr7282671lfm.69.1611850223669; Thu, 28 Jan 2021 08:10:23 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id v29sm1738219lfq.230.2021.01.28.08.10.22 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jan 2021 08:10:22 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: 44824@debbugs.gnu.org References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c__47986.5006914892$1611843550$gmane$org@gmail.com> Message-ID: <3c4f6517-7cfa-bbeb-0eae-e9bc2a7f972d@gmail.com> Date: Thu, 28 Jan 2021 23:10:14 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <108399a5-66ad-eee6-572b-b3f2181e4e6c__47986.5006914892$1611843550$gmane$org@gmail.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 28/01/2021 18:31, > > If I try in eshell buffer 'xdg-open /tmp/test.pdf && sleep 3' my cursor > blinks > with the Okular icon for a few seconds and then nothing happens. If I correctly get what you describe as "blinks", it could last for some time after process failure. On the other hand I am surprised that no other diagnostics is shown as a KDE dialog or as an error [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.167.52 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.167.52 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) 0.0 T_SPF_TEMPERROR SPF: test of record failed (temperror) -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 28/01/2021 18:31, > > If I try in eshell buffer 'xdg-open /tmp/test.pdf && sleep 3' my cursor > blinks > with the Okular icon for a few seconds and then nothing happens. If I correctly get what you describe as "blinks", it could last for some time after process failure. On the other hand I am surprised that no other diagnostics is shown as a KDE dialog or as an error [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.167.52 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.167.52 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 28/01/2021 18:31, gbiotti@gmail.com wrote: > > If I try in eshell buffer 'xdg-open /tmp/test.pdf && sleep 3' my cursor > blinks > with the Okular icon for a few seconds and then nothing happens. If I correctly get what you describe as "blinks", it could last for some time after process failure. On the other hand I am surprised that no other diagnostics is shown as a KDE dialog or as an error message in the eshell buffer. In the case of eshell, it is likely another problem, not killing handler with SIGHUP due to instantly closed pty. What happens if you run the following commands in the Emacs *eshell buffer* (with an existing PDF file, of course)? In particular I am interested in output appeared in the buffer. 1. okular /tmp/test.pdf 2. kde-open5 /tmp/test.pdf 3. sh -x /usr/bin/xdg-open /tmp/test.pdf I'm almost sure that okular is configured as the handler, but just to confirm it: 4. xdg-mime query default application/pdf I assume that PDF file is a valid one (not corrupted, not empty, not accessible due to file permissions, etc.) since okular is able to report such problems. You could also attach to emacs process with strace, try to launch handler, kill strace, and inspect log file which processes are spawned ("execve" lines) and their exit codes. Run strace from ordinary terminal (not from emacs) with proper process ID: strace -o /tmp/emacs.strace -f -s 128 -tt -p PID_OF_EMACS_PROCESS From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 23:51:25 2021 Received: (at 44824) by debbugs.gnu.org; 29 Jan 2021 04:51:25 +0000 Received: from localhost ([127.0.0.1]:50804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Lkj-0000w6-22 for submit@debbugs.gnu.org; Thu, 28 Jan 2021 23:51:25 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Lkh-0000vs-A7 for 44824@debbugs.gnu.org; Thu, 28 Jan 2021 23:51:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6i9zCEHk2MNFQdGRudvKLg8O6obZLt81ce9jnVX6L4U=; b=Mr1GNH49dyAwtrukB1fBfVWDD0 /xnWSIL7LV6vt/bjTIkcHVACkoj6/5gA6QeMPHGOXAeHDzjyXnKnUG/Cv/FoEZMI5Wg2rR2gfKnS+ ZZYVcZag2gKWIaOOgmcKHnT89pfPUpFZzpVR98mfOTRTgV803mnCEFGyLfk/d3f2KNm8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5LkY-0007lH-Go; Fri, 29 Jan 2021 05:51:17 +0100 From: Lars Ingebrigtsen To: gbiotti@gmail.com Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVHR1KPcI5SbqwS DxDIwMX///8rhAWZAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UBHQQyE3uJOxAAAAGcSURBVDjLhdKN ccIwDAVgxcoAcfEAxjCAEjFA3Gr/mfpkB0KP5OrLHYTPevIPNMTjQRtMH1D6eH6+xr8gJ5CXI8jh BG54DoHxLCj7ADTWcACer+G2QdgB+RmwvfMOHMpNywbC4QUK09JnZuGhxHrFWd0zQJ8wzTwmm4IZ 3VkaaIOofLdKA6AAsgrW5b9HFrOVR0DWBb1l1eC3oqrJWB0IwLrcdIxpLZmmAXHJQUa0EOykVmwy 00JCBkBdVl1Yg1XGGfC8Dg8HLAggrFiJfaE//gVjA9nA375LuU5KT8CihAUV4wogYWsQNsC0VP2Q fMW9AklCvltzyD2VJKCFUosy62AdWL15q7DwBoxQr5k3KEqth3gSK7U1GgW/nPEVhadDDCX0vZLE liR+1BZrwK2rONAV81lo8uDERN6zHftVPEv6OYi2xTy820oX8SYOPVU9i2QdLqS4g1StNvBZyY99 4AFfBdArfDyMejF6pPUNpEPb+R/Q9AY/ZrxnPUF0RMXlBTPtsbi4nz1rB1C8HMP7mM8gncBoJxDp LEp/AWosrWb/MSsPAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAxLTI5VDA0OjUwOjE4KzAwOjAw i7qUXgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMS0yOVQwNDo1MDoxOCswMDowMPrnLOIAAAAA SUVORK5CYII= X-Now-Playing: Don Cherry's _Brown Rice_: "Brown Rice" Date: Fri, 29 Jan 2021 05:51:13 +0100 In-Reply-To: <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> (gbiotti@gmail.com's message of "Thu, 28 Jan 2021 12:31:08 +0100") Message-ID: <87lfccxs5a.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "gbiotti@gmail.com" writes: >> Yeah, calling xdg-open (and expecting it not to exit) is a known >> problem, but here it seems that xdg-open doesn't even work from *shell*, >> which is very odd. > > More info: > > As per bug 2523 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "gbiotti@gmail.com" writes: >> Yeah, calling xdg-open (and expecting it not to exit) is a known >> problem, but here it seems that xdg-open doesn't even work from *shell*, >> which is very odd. > > More info: > > As per bug 25234, using 'M-! xdg-open /tmp/test.pdf', 'M-& xdg-open > /tmp/test.pdf' > and 'M-& xdg-open /tmp/test.pdf && sleep 3' I get same results as reported. I'm not quite sure what you mean here. Do you mean that `M-! xdg-open /tmp/test.pdf' works fine, or that it fails? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 29 01:59:40 2021 Received: (at 44824) by debbugs.gnu.org; 29 Jan 2021 06:59:40 +0000 Received: from localhost ([127.0.0.1]:50972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Nkq-0006Pi-FY for submit@debbugs.gnu.org; Fri, 29 Jan 2021 01:59:40 -0500 Received: from mail-lf1-f50.google.com ([209.85.167.50]:40180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Nkm-0006PR-UX for 44824@debbugs.gnu.org; Fri, 29 Jan 2021 01:59:39 -0500 Received: by mail-lf1-f50.google.com with SMTP id v24so11050601lfr.7 for <44824@debbugs.gnu.org>; Thu, 28 Jan 2021 22:59:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O0BN1o0ahP/7QdCSnxjAsLc97hu29kDTX+xV4ikaMH8=; b=p/vt1++30TRJLTFAAuemepafn+zfWsGGywBidkeRC6K++UEv837P9Vl9i2/G7PmLX1 x4xc77o1858wEYAGdfPRszHbVTQlxKRKeaH/GuwM7waBOWVrcW1f4fM4++GWa5aeulBo C0w2e2Ap6UU4EImrYwVBObvO4ipyRYef/jyOErOTKUIiil8mRyu/GSEvKkNLroLcmijq xQhfhQXHmGGqQOrzE4unppjNlmCHWiOjB9vFEyygkJKwIcHTQLG/cHjtWn1rWynXZZwh Kz9RBiJvlPCbCMWDTQWt7EV7MEGg8rTfFc7oSw5vL1f2HLB+edd0tk7SOltrjEbRkDX5 ubWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O0BN1o0ahP/7QdCSnxjAsLc97hu29kDTX+xV4ikaMH8=; b=VNPu/6R+11dftziVowU+lWg30mq5+5G5JWFByAza7c4Ros+1S0GklVutM/lRJUQjmD wctBues+Ot+syJK7X/mQSCM+L3juR2ZcbfaO5WxmGLSS1HULVZJQAWRt2t9BOmR6jx8N S01UIiDzzCsb2ZHqKJ5Sxq+ZyY+4KeblsCFe9C1MYlkKWWzdcWhgBRlD2BwhpvJYKk3R hyvWHzad3HrvU2hGojg4kPyQfz26jTbJQYTxL1WBBgtTauEHGso06/feugXKYpl5wUz5 x3eKHyTxCVNs237Ezpstidq9Lk23K39Kis5UbnxzIKC9lwH5lsrwYKWhoZhnkPbYJl0j y9Eg== X-Gm-Message-State: AOAM530RpbD1p2jDwqnLyZG9SHtVf2QNEW81dxvRNaSLgZGZ71R4Xr6i /hPDz5NZxvJVy3LE38WSewlnttdcOzA4MLfFwbsosnWo X-Google-Smtp-Source: ABdhPJwHCbc9hGMMSmlWLeF2bvtXGM2f+OWJI3ULijmkUt++hqZz7ZFHgXRlqJKwjknefA6hR/MHqncHO1OQ+LDOchQ= X-Received: by 2002:ac2:5227:: with SMTP id i7mr1430927lfl.365.1611903570622; Thu, 28 Jan 2021 22:59:30 -0800 (PST) MIME-Version: 1.0 References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> In-Reply-To: <87lfccxs5a.fsf@gnus.org> From: Geraldo Biotti Date: Fri, 29 Jan 2021 07:59:19 +0100 Message-ID: Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: Lars Ingebrigtsen Content-Type: multipart/alternative; boundary="000000000000bd3e7e05ba048b56" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000bd3e7e05ba048b56 Content-Type: text/plain; charset="UTF-8" Il ven 29 gen 2021, 05:51 Lars Ingebrigtsen writes: > "gbiotti@gmail.com" writes: > > >> Yeah, calling xdg-open (and expecting it not to exit) is a known > >> problem, but here it seems that xdg-open doesn't even work from *shell*, > >> which is very odd. > > > > More info: > > > > As per bug 25234, using 'M-! xdg-open /tmp/test.pdf', 'M-& xdg-open > > /tmp/test.pdf' > > and 'M-& xdg-open /tmp/test.pdf && sleep 3' I get same results as > reported. > > I'm not quite sure what you mean here. Do you mean that > `M-! xdg-open /tmp/test.pdf' works fine, or that it fails? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no I get the same results reported in bug 25234. 'M-! xdg-open /tmp/test.pdf' works fine. I apologise for my english but it's not my mother language. > --000000000000bd3e7e05ba048b56 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Il ven 29 gen 2021, 05:51 Lars Ingebrigtsen <larsi@gnus.org> writes:
"gbiotti@gmail.com" <gbiotti@gmail= .com> writes:

>> Yeah, calling xdg-open (and expecting it not to exit) is a known >> problem, but here it seems that xdg-open doesn't even work fro= m *shell*,
>> which is very odd.
>
> More info:
>
> As per bug 25234, using 'M-! xdg-open /tmp/test.pdf', 'M-&= amp; xdg-open
> /tmp/test.pdf'
> and 'M-& xdg-open /tmp/test.pdf && sleep 3' I get = same results as reported.

I'm not quite sure what you mean here.=C2=A0 Do you mean that
`M-! xdg-open /tmp/test.pdf' works fine, or that it fails?

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no

I get the= same results reported in bug 25234. 'M-! xdg-open /tmp/test.pdf' w= orks fine. I apologise for my english but it's not my mother language.<= /div>


--000000000000bd3e7e05ba048b56-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 01:10:06 2021 Received: (at 44824) by debbugs.gnu.org; 30 Jan 2021 06:10:06 +0000 Received: from localhost ([127.0.0.1]:53345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5jSO-0002nU-Vp for submit@debbugs.gnu.org; Sat, 30 Jan 2021 01:10:05 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5jSK-0002mW-Ge for 44824@debbugs.gnu.org; Sat, 30 Jan 2021 01:10:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mgt8sjzYwsdhb1wm0EJ6WnmKZNBkmoPHegJMV7sLy9M=; b=El07chgCveDiu1DmfhA4cBdTLT vwOY1LOA0NO1KQh5GnQXPJY128YxkJzF/3pyDVHI9W0eOxEwT1PdOFxGjcVNP+jP+1ogGPcezXBFg r2v4nNgSEFXvV3nJEPxahv9Bw2CT038zAFLoht1Snf0S01J4VdndJzArTpqreMe+uIyE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5jSB-0004Pr-Qs; Sat, 30 Jan 2021 07:09:54 +0100 From: Lars Ingebrigtsen To: Geraldo Biotti Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEXcu6+qbl9eLioN BAb///8QCg2MAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UBHgYFForVFCsAAAGZSURBVDjLhZKLkcMg DESDrwEkGohEA0Hqv7fbBX+Sm3hOmUmIHystax6P/6rM7zqX4o6FoIrIJkc9NDJf56ZNauHjio9o PnfwwNM6iSpg0UMBTeUCoBvJqVi/VYr3cAzln0WKTSOemSRUz5kTlFKSFUK7HAtQjYLSJ3Gt1wwp kGguScdwqTxGvUD0dAKeCCONTqomnnp3f16NjRapcBwyZ6u2+tZakUW4H5Esi5BUKgAMgK62HQyk 0rqpuy9F20Ggq6ZBINKpWGeKlginuM5EgvksTwKAcIx/wxk7ZnMewLMMLDwgagAbAcLacmzhpmYa wleLM3nCi+T4ycDCxJSgrdQycjS2h9z7rqAndp6Je46lKNw1ih0BzJHHDHdkuT+GXfM8XHk5QUQf EyAS95ADwEU06y++A1yYHLISSIV5nUCRUk8c61A4bglBD+bOIM4KQyRwaWziPU9bwVbYPjf7myLp in1Gn4d6rwVgJd9nXMBZ3wAM6neAIM878RecB/wEN8PnPbkD0W9Atjvgn6Dk18Klvlr3T3BTvw+Q kZeiVD5bAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAxLTMwVDA2OjA1OjIyKzAwOjAwDLrbIwAA ACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMS0zMFQwNjowNToyMiswMDowMH3nY58AAAAASUVORK5C YII= X-Now-Playing: Simon & Garfunkel's _Live 1969_: "So Long, Frank Lloyd Wright" Date: Sat, 30 Jan 2021 07:09:50 +0100 In-Reply-To: (Geraldo Biotti's message of "Fri, 29 Jan 2021 07:59:19 +0100") Message-ID: <875z3f2bwx.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Geraldo Biotti writes: > I get the same results reported in bug 25234. 'M-! xdg-open /tmp/test.pdf' works > fine. I apologise for my english but it's not my mother language. So: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Geraldo Biotti writes: > I get the same results reported in bug 25234. 'M-! xdg-open /tmp/test.pdf' works > fine. I apologise for my english but it's not my mother language. So: This works: M-! xdg-open /tmp/test.pdf RET This doesn't work: M-& xdg-open /tmp/test.pdf RET This doesn't work: M-x shell RET xdg-open /tmp/test.pdf RET ? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 02:50:53 2021 Received: (at 44824) by debbugs.gnu.org; 30 Jan 2021 07:50:53 +0000 Received: from localhost ([127.0.0.1]:53560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5l1v-0005ei-WC for submit@debbugs.gnu.org; Sat, 30 Jan 2021 02:50:52 -0500 Received: from mail-lf1-f43.google.com ([209.85.167.43]:45638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5l1u-0005eU-3D for 44824@debbugs.gnu.org; Sat, 30 Jan 2021 02:50:50 -0500 Received: by mail-lf1-f43.google.com with SMTP id q12so15699764lfo.12 for <44824@debbugs.gnu.org>; Fri, 29 Jan 2021 23:50:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pbhcO+geU9M8DLodfT2l5AA5Fo4N3PjAjOEBp+K1Q64=; b=MQvKa/qOKbs+558L60Hkm+Jw4u+4UIcCc4weY4Uw6iFsk1hDzaaYSsharhhX2w5Zz4 ERiqv0OvRZueGVOZlfbpPAPsFUCIR0eJARRd3bdSbTasTa91OgBNHjUU9649Bz49UpWe HhFe6wvuHc+9XZ21sV0uFS3dzqbMQrCeFv4xWqv/wDcpW81X63buC4F0aOvxaWi7+bec aLZJ55jnX95LP5HTMM/Z7Q8uc6+izo4a7vE9XNF1FS2ZVeReFeKkgokVQh2nAVekY3yT IRm54A5wKO5o7cwUIz2Nkgw1eoKXejZd3oaGWv54+CYuCc5R84xJiR/7t83ymVZlfZIg 8lrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pbhcO+geU9M8DLodfT2l5AA5Fo4N3PjAjOEBp+K1Q64=; b=HTSGvnPvpkGwDUnNLXc3Vc/hkKb4362uSQdjSr0iTGPiXRUzcXM/zzQrld7PW6vltj dYYZ79CtFtleXZgQ8CbgjpboQejanuhNT0N6jzPWs66PUqxNppjHgOMEEJ2sx2jPLXZQ jtlgeik5vtevojwnwwTtmvFiHAGIC90mDdMDDfue9AFZoFqO2kFhaKxDOBaY0wnikjdA 7h30Naz6u6vuMlroJ7d8tmhov9EdvWNufER3CjvVPe95iYKKvpuj0xcEzUn7OBhlzOxB s+CSQ4CJU1EkFf98lDokc2mBp2HkqHR2TYnOAjpzYgouUAjRSKYnSKVwR/Np82DrjFNH ytmA== X-Gm-Message-State: AOAM532BOz3S0LrVQR2B1x1VJNxafK3rIRNoSFtXUj/WuL89DOsXf7QT sXbM+EoUsAwWkdNgATjL1nprXfJFHftSEfR7ie7ijrBr X-Google-Smtp-Source: ABdhPJz8096vFzhA5J5dyLBNj7xqiPGHIFUM3LKig0nNwliChCMKx93Lbz5J+yXvMZl1TLuSUyiHsRgm8VDad3wiKAM= X-Received: by 2002:ac2:4ada:: with SMTP id m26mr3949773lfp.662.1611993043837; Fri, 29 Jan 2021 23:50:43 -0800 (PST) MIME-Version: 1.0 References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> In-Reply-To: <875z3f2bwx.fsf@gnus.org> From: Geraldo Biotti Date: Sat, 30 Jan 2021 08:50:32 +0100 Message-ID: Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: Lars Ingebrigtsen Content-Type: multipart/alternative; boundary="000000000000c2254e05ba1960ad" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000c2254e05ba1960ad Content-Type: text/plain; charset="UTF-8" Il sab 30 gen 2021, 07:09 Lars Ingebrigtsen ha scritto: > Geraldo Biotti writes: > > > I get the same results reported in bug 25234. 'M-! xdg-open > /tmp/test.pdf' works > > fine. I apologise for my english but it's not my mother language. > > So: > > This works: > M-! xdg-open /tmp/test.pdf RET > > This doesn't work: > M-& xdg-open /tmp/test.pdf RET > > This doesn't work: > M-x shell RET xdg-open /tmp/test.pdf RET > > ? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no Exactly. And it doesn't even "export as PDF and open file" in org-mode, which I think is a related problem. --000000000000c2254e05ba1960ad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Il sab 30 gen 2021, 07:09 Lars Ingebrigtsen <larsi@gnus.org> ha scritto:
Geraldo Biotti <gbiotti@gmail.com> wri= tes:

> I get the same results reported in bug 25234. 'M-! xdg-open /tmp/t= est.pdf' works
> fine. I apologise for my english but it's not my mother language.<= br>
So:

This works:
M-! xdg-open /tmp/test.pdf RET

This doesn't work:
M-& xdg-open /tmp/test.pdf RET

This doesn't work:
M-x shell RET xdg-open /tmp/test.pdf RET

?

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no

Exactly. = And it doesn't even "export as PDF and open file" in org-mode= , which I think is a related problem.

=
--000000000000c2254e05ba1960ad-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 03:42:42 2021 Received: (at 44824) by debbugs.gnu.org; 30 Jan 2021 08:42:42 +0000 Received: from localhost ([127.0.0.1]:53625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5lq6-0000gL-5g for submit@debbugs.gnu.org; Sat, 30 Jan 2021 03:42:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5lq3-0000g8-Mc for 44824@debbugs.gnu.org; Sat, 30 Jan 2021 03:42:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40388) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5lpy-0002Eo-FD; Sat, 30 Jan 2021 03:42:34 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4560 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l5lpx-0003Pj-C4; Sat, 30 Jan 2021 03:42:33 -0500 Date: Sat, 30 Jan 2021 10:42:52 +0200 Message-Id: <838s8aak8j.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <875z3f2bwx.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 30 Jan 2021 07:09:50 +0100) Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org, gbiotti@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Lars Ingebrigtsen > Date: Sat, 30 Jan 2021 07:09:50 +0100 > Cc: 44824@debbugs.gnu.org > > This works: > M-! xdg-open /tmp/test.pdf RET > > This doesn't work: > M-& xdg-open /tmp/test.pdf RET > > This doesn't work: > M-x shell RET xdg-open /tmp/test.pdf RET How about asking the xdg-open developers to help us figure out the reason? Or, failing that, debug xdg-open in the problematic situations to find out what fails there and why? E.g., could it be that it fails because stdin/stdout is a PTY? what happens if you bind process-connection-type to nil when starting the async subprocess? From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 08:32:09 2021 Received: (at 44824) by debbugs.gnu.org; 30 Jan 2021 13:32:09 +0000 Received: from localhost ([127.0.0.1]:54106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5qMD-0003mi-5n for submit@debbugs.gnu.org; Sat, 30 Jan 2021 08:32:09 -0500 Received: from mail-lf1-f52.google.com ([209.85.167.52]:45331) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5qMB-0003mP-Ki for 44824@debbugs.gnu.org; Sat, 30 Jan 2021 08:32:08 -0500 Received: by mail-lf1-f52.google.com with SMTP id q12so16422976lfo.12 for <44824@debbugs.gnu.org>; Sat, 30 Jan 2021 05:32:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PrDj/6AAMU6C+AXgs6OKonLulVFtbb1t2INsGaup/E8=; b=T6SAmg7vCah1s5fZAtvVYNezns5lvk8tWNrc/tVf++nY+mOxuIqde15tJGyHoZ/I+9 aZE/LbBQE3bVPbCb86pHqXxfc85+UXyR4BBrbTgJwEk4hfKUGmp2KGpq+fRvCMbcJQXg 6VI7tNwgRhTlEo9YdQZaJbxiKUqwqsq3TYlqEAW7iNRoefuxEaHdHd1Cc0a01y3xdbMI f3Jax1v56Sv7DkpXYJ7Y3PTaB1iD4awoVDFLZHctR45fHvCD1PyW67a2CBpFie+cXJBP eoX9EAEkphuyLguRE+hu71BdShij+PD2Te/Bdw4IJD23cQW5oUhjdLrVNMK14TcdTjOZ 4rGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PrDj/6AAMU6C+AXgs6OKonLulVFtbb1t2INsGaup/E8=; b=Lc/oto5wWxUiFhqeo+r8yPPNXFdrFo6gXQN6xFp3RhoMF1ExKK1v3JFba6W4yw5S/o hAz2+XkhNuL3MQUWU0bZRnV2reA39MD31IocIlKyyUpJkaYkSntFmWxlNCWEjTKBEIF6 hjkif6zLB2jIs/H8N84obEapTIXQv75+TGpve9rymue63bAjnamHp2n+B1UoUVgZgJfU 4geAsCrxCEQ7ws9bIJcMkGEFbgQ/b++b/nzBbyXWTZvsfQ0Cwm2vKuH84iD6bdlIRM09 ynf46Fz3IJJ5NkK7Raf9x11R+LGKdWFPFaW87O41gGDa7KcqMIGhzY+umUTKgp1b25C7 tjXw== X-Gm-Message-State: AOAM531D1rRhZ9bWT0BJvW9vTQcexu/Fnrd5Awpar8NiBFSVsbpY82yt qLosAYNFyF3bXJmZHiOIxcs= X-Google-Smtp-Source: ABdhPJxvbJMUhQWU96lYQPrtM3kAAM/UOsZF9L+02atQsfgpjR3XF7UGuP4WmAs3BdozXMEuSQ7pSA== X-Received: by 2002:a19:504b:: with SMTP id z11mr4657981lfj.26.1612013521551; Sat, 30 Jan 2021 05:32:01 -0800 (PST) Received: from [192.168.0.101] ([5.44.169.181]) by smtp.googlemail.com with ESMTPSA id u18sm2939043ljl.57.2021.01.30.05.32.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Jan 2021 05:32:00 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: 44824@debbugs.gnu.org References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> Message-ID: Date: Sat, 30 Jan 2021 20:31:53 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <838s8aak8j.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 30/01/2021 15:42, Eli Zaretskii wrote: >> >> This works: >> M-! xdg-open /tmp/test.pdf RET >> >> This doesn't work: >> M-& xdg-open /tmp/test.pdf RET >> >> This doesn't work: >> M-x shell RET xdg-o [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.167.52 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.167.52 listed in list.dnswl.org] -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 Cc: gbiotti@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 30/01/2021 15:42, Eli Zaretskii wrote: >> >> This works: >> M-! xdg-open /tmp/test.pdf RET >> >> This doesn't work: >> M-& xdg-open /tmp/test.pdf RET >> >> This doesn't work: >> M-x shell RET xdg-o [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.167.52 listed in wl.mailspike.net] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.167.52 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 30/01/2021 15:42, Eli Zaretskii wrote: >> >> This works: >> M-! xdg-open /tmp/test.pdf RET >> >> This doesn't work: >> M-& xdg-open /tmp/test.pdf RET >> >> This doesn't work: >> M-x shell RET xdg-open /tmp/test.pdf RET Geraldo, "M-x shell" case is rather strange. Could you, please, confirm ones more that okular window with the file content does not appear if you call xdg-open from an *interactive* emacs shell buffer? The link to an emacs-orgmode list message, that I have posted earlier, explains why async-shell-command *may* fail while shell-command should work reliably. I am really surprised by failure when command is executed in a [e]shell buffer. > How about asking the xdg-open developers to help us figure out the > reason? Or, failing that, debug xdg-open in the problematic > situations to find out what fails there and why? E.g., could it be > that it fails because stdin/stdout is a PTY? what happens if you bind > process-connection-type to nil when starting the async subprocess? I do not think, it is xdg-open problem. It just calls kde-open5 that spawns actual handler and immediately exits. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 08:48:52 2021 Received: (at 44824) by debbugs.gnu.org; 30 Jan 2021 13:48:52 +0000 Received: from localhost ([127.0.0.1]:54132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5qcN-0006GT-QJ for submit@debbugs.gnu.org; Sat, 30 Jan 2021 08:48:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5qcL-0006GG-Ul for 44824@debbugs.gnu.org; Sat, 30 Jan 2021 08:48:51 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44439) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5qcG-0003bA-Mn; Sat, 30 Jan 2021 08:48:44 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3878 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l5qcE-0004dn-GR; Sat, 30 Jan 2021 08:48:44 -0500 Date: Sat, 30 Jan 2021 15:49:02 +0200 Message-Id: <83sg6i8rht.fsf@gnu.org> From: Eli Zaretskii To: Maxim Nikulin In-Reply-To: (message from Maxim Nikulin on Sat, 30 Jan 2021 20:31:53 +0700) Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org, gbiotti@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Maxim Nikulin > Date: Sat, 30 Jan 2021 20:31:53 +0700 > Cc: gbiotti@gmail.com > > > How about asking the xdg-open developers to help us figure out the > > reason? Or, failing that, debug xdg-open in the problematic > > situations to find out what fails there and why? E.g., could it be > > that it fails because stdin/stdout is a PTY? what happens if you bind > > process-connection-type to nil when starting the async subprocess? > > I do not think, it is xdg-open problem. It just calls kde-open5 that > spawns actual handler and immediately exits. I didn't say it was their problem, I suggested to ask them to help us understand why xdg-open doesn't work in those cases, under the assumption that they are familiar with their code better than us. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 10:58:15 2021 Received: (at 44824) by debbugs.gnu.org; 30 Jan 2021 15:58:16 +0000 Received: from localhost ([127.0.0.1]:55605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5sdb-0005mU-Lu for submit@debbugs.gnu.org; Sat, 30 Jan 2021 10:58:15 -0500 Received: from mail-lj1-f174.google.com ([209.85.208.174]:44114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5sda-0005mE-Bs for 44824@debbugs.gnu.org; Sat, 30 Jan 2021 10:58:14 -0500 Received: by mail-lj1-f174.google.com with SMTP id f2so14088519ljp.11 for <44824@debbugs.gnu.org>; Sat, 30 Jan 2021 07:58:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:cc:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=rhv2UGXUL/cruE8b2CcCV2xlzpXcL3DyC/5yfLE5Hlw=; b=JHAwfyqw/utJvvV8KyV1nnPC0/QqEYUOEMAp79oIwEwWamByhz994s4VqE8jYqmlYz Ew+BMrgKinJQnpgi6I/34U47TRb1LPCgXmLyuyo0VVRj0ys1VNkW9fsWvzCKMMtjRp1M mEqOtDffCxTK+qkGS17YBo/7c9wnoJGa2UO0wVxSIFvyZtVCQEYA6G9BT2/6IzpKU5HZ vins6iycMLxs19pSrBYfE3nxNBxkCA9U38jeD5SbTxU5xmuZD8fszOXLXqX9tPNEADS7 aZeEWuliuZrjS587Rya88qJlQeO40MZgTKQGWQlTRAaCsTDnZW/2DrVaTucbsFs3bFU5 P1uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rhv2UGXUL/cruE8b2CcCV2xlzpXcL3DyC/5yfLE5Hlw=; b=PDRAxibWhRaSt/5wcxD2POLqifrOngV/Nr1Xr1h2wbXnAchVzqZH6tyETMx674zG2d 6dHRU6R5/K240lQA9vBiRKeuAsxWfujS7LyFr9zzHRbTKkenVh4PpNZHmac8E44+67cB 6as9iyVbaMd9yIxhVXxGhs+Hs3/cCyYs1pzZ9NHybMfPxgj/imbPLBoNYMzWDbkfR59F 9ETaK0AfGpTzMr3bAXdW1MQV+D07NQVP53HY35kA27h2rWGGU6CCxmSAdVilPq3sJHw5 /PIAKkvhU1qjwYLihz6De+Gr74jH4037aOQP8XFukbs4mF6t52lyKpvLuSiPKz0piBsy SqNw== X-Gm-Message-State: AOAM532U0F7gX5ynVdXOvPl5BEb1GM7H71XCQKS3aLOJY8UaM865+R/M dg3bwa/jY/gFmQl4vaSC5rtwAh29fow= X-Google-Smtp-Source: ABdhPJyLGAKImSJXPinOXhjJ06HE+zK36YgonpQoJJFtsZxIxeTAoV5kbsC4xKFiGmKGhNL8Lu0GbQ== X-Received: by 2002:a2e:88c9:: with SMTP id a9mr5159914ljk.107.1612022287820; Sat, 30 Jan 2021 07:58:07 -0800 (PST) Received: from [192.168.0.101] ([5.44.169.181]) by smtp.googlemail.com with ESMTPSA id v21sm2990023ljk.122.2021.01.30.07.58.06 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Jan 2021 07:58:07 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> Message-ID: <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> Date: Sat, 30 Jan 2021 22:58:06 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83sg6i8rht.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 4.8 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 30/01/2021 20:49, Eli Zaretskii wrote: >> >>> How about asking the xdg-open developers to help us figure out the >>> reason? >> >> I do not think, it is xdg-open problem. It just calls kde-open5 th [...] Content analysis details: (4.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] 1.2 MISSING_HEADERS Missing To: header 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.174 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.174 listed in wl.mailspike.net] -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.8 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 30/01/2021 20:49, Eli Zaretskii wrote: >> >>> How about asking the xdg-open developers to help us figure out the >>> reason? >> >> I do not think, it is xdg-open problem. It just calls kde-open5 th [...] Content analysis details: (3.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.174 listed in wl.mailspike.net] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.174 listed in list.dnswl.org] 1.2 MISSING_HEADERS Missing To: header 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 30/01/2021 20:49, Eli Zaretskii wrote: >> >>> How about asking the xdg-open developers to help us figure out the >>> reason? >> >> I do not think, it is xdg-open problem. It just calls kde-open5 that >> spawns actual handler and immediately exits. > > I didn't say it was their problem, I suggested to ask them to help us > understand why xdg-open doesn't work in those cases, under the > assumption that they are familiar with their code better than us. What kind of help do you expect from xdg-open developers? It is a shell script, you could easily inspect it. I have posted already a command how to trace its execution. However currently I am almost sure that it merely calls 'kde-open5 /tmp/file.pdf'. The problem is that emacs does not expect that kde-open5 and thus xdg-open exits instantly. The question could be addressed to KDE developers, but unlike the issue with temporary files, in my opinion, pty+SIGHUP problem should be fixed in org mode. Some convenience function in emacs core would be nice but org mode is compatible with older emacs releases. Thus the only option is to change the org-open-files function. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 11:28:05 2021 Received: (at 44824) by debbugs.gnu.org; 30 Jan 2021 16:28:05 +0000 Received: from localhost ([127.0.0.1]:55697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5t6T-0006ZU-0I for submit@debbugs.gnu.org; Sat, 30 Jan 2021 11:28:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5t6Q-0006Yz-E7 for 44824@debbugs.gnu.org; Sat, 30 Jan 2021 11:28:03 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47374) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5t6K-0004fE-Td; Sat, 30 Jan 2021 11:27:56 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1958 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l5t6J-0003N4-T4; Sat, 30 Jan 2021 11:27:56 -0500 Date: Sat, 30 Jan 2021 18:28:17 +0200 Message-Id: <83lfca8k4e.fsf@gnu.org> From: Eli Zaretskii To: Maxim Nikulin In-Reply-To: <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> (message from Maxim Nikulin on Sat, 30 Jan 2021 22:58:06 +0700) Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Maxim Nikulin > Date: Sat, 30 Jan 2021 22:58:06 +0700 > Cc: 44824@debbugs.gnu.org > > The problem is that emacs does not expect that kde-open5 and thus > xdg-open exits instantly. Why is that a problem, and how does it cause the invocation to fail, i.e. not show the file in question? > The question could be addressed to KDE developers, but unlike the > issue with temporary files, in my opinion, pty+SIGHUP problem should > be fixed in org mode. What do you mean by "pty+SIGHUP problem" in this case? What exactly is the problem? From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 11:39:18 2021 Received: (at 44824) by debbugs.gnu.org; 30 Jan 2021 16:39:18 +0000 Received: from localhost ([127.0.0.1]:55712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5tHK-0006qb-5j for submit@debbugs.gnu.org; Sat, 30 Jan 2021 11:39:18 -0500 Received: from mail-wr1-f42.google.com ([209.85.221.42]:41316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5tHG-0006qL-S9 for 44824@debbugs.gnu.org; Sat, 30 Jan 2021 11:39:16 -0500 Received: by mail-wr1-f42.google.com with SMTP id p15so11955394wrq.8 for <44824@debbugs.gnu.org>; Sat, 30 Jan 2021 08:39:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:disposition-notification-to :date:user-agent:mime-version:in-reply-to:content-language; bh=kDkYUnV2+gq//PSl25McGVXtE4orHziy9ja30FRD2nE=; b=iNBGzcvU58M5NHJ6uLCqA6QY4Ig9sCM3XGfXhvTlCLdTppVikmnrA5Y3Ynv2yKXbWZ NKc7YEN2Gevfgc8PcCUCC0ue/XzKvxNtmddy7730u148NTVOu3L6uYjG6xfDnBSsw8vt 4ATnUDHj9w8hubIkt4pV33+hhPlhMKPyqJKxSvg+h/hOa/jBbusFNJZPJ6dfk+HJwyWA 4LdqY1aI6lSylUP/RkgDUhVd2KeYNO7kNJCsovj3htdcE5PbKyB/YMxZxLrr8t1A0amE SZd7fkajJzuJLaV/Xx9kv0+4CrO10bp+p59mZd1y1vSXL0nJ/GsfPxI89e8VNKm2l9za FY1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-language; bh=kDkYUnV2+gq//PSl25McGVXtE4orHziy9ja30FRD2nE=; b=UFpSKK1Wg9sy/2XPeD8h3AqJXOYNHUSpSsw+rS8iGj9YWFLGl7THbwJXFnvuRBFNxS eV10n2/bonjWsoe9RpeDnu9SlNH6s2bYRXadD208iseAKo+TcRPCILuXp0bPlR2mcK7H 0ckOg/qK4ecbU1mY7DCFPfi+Y/TkDxkoC+qBfh4p9AYlBT7P5WhzUeWi7rZBpjvUCfO8 TASJyWL7HKklw8Fro4Crzx39Jwam7Qt3DVowybUbUwb7peI99kt1UplXUU7vkbTJCwU2 w1+12TkhiTJfnGVVYTM5b+xvSPBJEPAV/0nb7xXKdLkvsdbRvW0MxxyC5Kg+ut1RbgnW ROVw== X-Gm-Message-State: AOAM5303Lheixh4fUMdj/nzcFchjSL86VLmHWywlJuQL/72bGA81zsHr aymqUzBzeosrYfEkuPpjDiJiimaHPPiTCw== X-Google-Smtp-Source: ABdhPJyFAwR6rankEB7QkurHI1LHuaH4lJQb0PEgLLqYATtsZQogufS5O90KBNytq1Vxf9IVB0zFJA== X-Received: by 2002:a5d:6712:: with SMTP id o18mr10005550wru.375.1612024748950; Sat, 30 Jan 2021 08:39:08 -0800 (PST) Received: from [192.168.3.50] (host-79-36-126-117.retail.telecomitalia.it. [79.36.126.117]) by smtp.gmail.com with ESMTPSA id l11sm17907693wrt.23.2021.01.30.08.39.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Jan 2021 08:39:08 -0800 (PST) Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: Maxim Nikulin , 44824@debbugs.gnu.org References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> From: "gbiotti@gmail.com" Message-ID: <0863e1f7-a265-0df8-3e62-9c36a13cbaa4@gmail.com> Date: Sat, 30 Jan 2021 17:39:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------50BC7012A5776C78B3BA2974" Content-Language: it X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------50BC7012A5776C78B3BA2974 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Il 30/01/2021 14:31, Maxim Nikulin ha wrote: > On 30/01/2021 15:42, Eli Zaretskii wrote: >>> >>> This works: >>> M-! xdg-open /tmp/test.pdf RET >>> >>> This doesn't work: >>> M-& xdg-open /tmp/test.pdf RET >>> >>> This doesn't work: >>> M-x shell RET xdg-open /tmp/test.pdf RET > > Geraldo, "M-x shell" case is rather strange. Could you, please, > confirm ones more that okular window with the file content does not > appear if you call xdg-open from an *interactive* emacs shell buffer? > The link to an emacs-orgmode list message, that I have posted earlier, > explains why async-shell-command *may* fail while shell-command should > work reliably. I am really surprised by failure when command is > executed in a [e]shell buffer. > I confirm. I can see the Okular icon appear and disappear immediately in the panel. As mentioned I can make a video of everything, but I have no idea where to upload it. If it is okay to make the video and you think it is useful please tell me which commands to execute for more information on the operating environment >> How about asking the xdg-open developers to help us figure out the >> reason?  Or, failing that, debug xdg-open in the problematic >> situations to find out what fails there and why?  E.g., could it be >> that it fails because stdin/stdout is a PTY? what happens if you bind >> process-connection-type to nil when starting the async subprocess? > > I do not think, it is xdg-open problem. It just calls kde-open5 that > spawns actual handler and immediately exits. --------------50BC7012A5776C78B3BA2974 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Il 30/01/2021 14:31, Maxim Nikulin ha wrote:
On 30/01/2021 15:42, Eli Zaretskii wrote:

This works:
M-! xdg-open /tmp/test.pdf RET

This doesn't work:
M-& xdg-open /tmp/test.pdf RET

This doesn't work:
M-x shell RET xdg-open /tmp/test.pdf RET

Geraldo, "M-x shell" case is rather strange. Could you, please, confirm ones more that okular window with the file content does not appear if you call xdg-open from an *interactive* emacs shell buffer? The link to an emacs-orgmode list message, that I have posted earlier, explains why async-shell-command *may* fail while shell-command should work reliably. I am really surprised by failure when command is executed in a [e]shell buffer.


I confirm.
I can see the Okular icon appear and disappear immediately in the panel.
As mentioned I can make a video of everything, but I have no idea where to upload it.
If it is okay to make the video and you think it is useful please tell me which commands to execute for more information on the operating environment

How about asking the xdg-open developers to help us figure out the
reason?  Or, failing that, debug xdg-open in the problematic
situations to find out what fails there and why?  E.g., could it be
that it fails because stdin/stdout is a PTY? what happens if you bind
process-connection-type to nil when starting the async subprocess?

I do not think, it is xdg-open problem. It just calls kde-open5 that spawns actual handler and immediately exits.

--------------50BC7012A5776C78B3BA2974-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 13:51:28 2021 Received: (at 44824) by debbugs.gnu.org; 30 Jan 2021 18:51:28 +0000 Received: from localhost ([127.0.0.1]:55803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5vLD-0001bl-SI for submit@debbugs.gnu.org; Sat, 30 Jan 2021 13:51:28 -0500 Received: from mail-lf1-f53.google.com ([209.85.167.53]:46875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5vLA-0001bX-Eg for 44824@debbugs.gnu.org; Sat, 30 Jan 2021 13:51:27 -0500 Received: by mail-lf1-f53.google.com with SMTP id e2so13540117lfj.13 for <44824@debbugs.gnu.org>; Sat, 30 Jan 2021 10:51:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TXb8hv3nVAPHhkDhMcqTe4H5cUlyncAq11ZJoiR4bHU=; b=V4JZ92K7GQqYoRlNF4B56AECrIVjMakfuPSOGPUQf2hzOyVD9VxpgGi6LdJHtlXN6j MgTtyzY7Bun6BfvAW9+wjY1KRt0CnzgoVpI0KNRCleQhcD9R7T8hk14Pkj//DStMnVFA KEfOYUvG6nYG60sAggfq0PqiHYopb5FV941v5AL+ROq+wtR1eF/U9L1DQUFAu7Ss/NfS 59+F3gS1TGCPnh8S6zjbKJUmeNd3CHsCOhTvp40jpxBYj5kPbFMQ4MmCRQQXD9ofLRf4 O4Ny7IEGNraksnqVURppWkJNcXa2AoAktVmoQiSrUcirx1RJdXH2JVCLsqPqein9rB1l umOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=TXb8hv3nVAPHhkDhMcqTe4H5cUlyncAq11ZJoiR4bHU=; b=HaBuSunJUS+rPRtClZH/E0IS9+9l6KJrBEK0HyIOnygD8Fsc/TNHdN+Iadl+vcrtFl zvhD2Sei2u39IW8P7ZrHWjAVW3EprNtdt+1Ujt85iSjSIv7cdUNRZ0/oqoEGSYOYWDWK pNOYVof5X8RLnVMujJ8il89Zz5RgOz00ffqRvm9NAW736V/6MPgsdegTjCPloscGSU3o /xV4mGoS5SEE+FEsKwHKN6dz+Ng1cZggPnfginITB50OFEsHwolUAZ78Fb5zn4FykBtH AKc4Qwmv/8zskLcVpCxUQTMZUVytqjxbz2u9jhhFWFHW6ovHEUyKY2OHbZWdkOtwB+J4 0Wng== X-Gm-Message-State: AOAM531zLsKszjDzPlzWPpjabnol2nvFEfT4htjEEPXEDk53J9gv4tz5 Jv+WxL67oh0QLnJOf4wt4gPOJH14DgRxemYvYTM= X-Google-Smtp-Source: ABdhPJxS2+iGyJuy8SocofKS4HS56dRVtCB6a6Uq/A//sL7asZ0Hn8gXdbeIvhb5/YbpQC2twH6bCCPRHdAYdzurZRI= X-Received: by 2002:a19:c3cc:: with SMTP id t195mr5050668lff.235.1612032678214; Sat, 30 Jan 2021 10:51:18 -0800 (PST) MIME-Version: 1.0 References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <0863e1f7-a265-0df8-3e62-9c36a13cbaa4@gmail.com> In-Reply-To: <0863e1f7-a265-0df8-3e62-9c36a13cbaa4@gmail.com> From: Bhavin Gandhi Date: Sun, 31 Jan 2021 00:20:41 +0530 Message-ID: Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: "gbiotti@gmail.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org, Maxim Nikulin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) On Sat, 30 Jan 2021 at 19:04, Maxim Nikulin wrote: > [=E2=80=A6] > > Geraldo, "M-x shell" case is rather strange. Could you, please, confirm > ones more that okular window with the file content does not appear if > you call xdg-open from an *interactive* emacs shell buffer? The link to > an emacs-orgmode list message, that I have posted earlier, explains why > async-shell-command *may* fail while shell-command should work reliably. > I am really surprised by failure when command is executed in a [e]shell > buffer. > I was expecting something similar, surprisingly here is what I observed on my system (with emacs -Q, GNOME and Evince =E2=80=94 Document Viewer). M-x eshell $ xdg-open ~/Documents/test.pdf [Nothing happens] M-x shell $ xdg-open ~/Documents/test.pdf [Evince pops up with the PDF] M-! xdg-open ~/Documents/test.pdf [Evince pops up with the PDF] M-& xdg-open ~/Documents/test.pdf [Nothing happens] Emacs: 27.1.91 GNOME: 3.38.3 xdg-open 1.1.3+ --=20 Warm Regards, Bhavin Gandhi (bhavin192) | https://geeksocket.in From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 02:17:20 2021 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 07:17:20 +0000 Received: from localhost ([127.0.0.1]:56284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l66z0-0006RK-4f for submit@debbugs.gnu.org; Sun, 31 Jan 2021 02:17:19 -0500 Received: from quimby.gnus.org ([95.216.78.240]:35374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l66yx-0006M5-Kt for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 02:17:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pwf1YmXDact9L7j3bL+87inr5S7w7YBxWKBnCXoGWm8=; b=hHDOV5oVNve50vT4e2b10JtxQc gW7QdQLXYzZ7oVIrFQ5WAup9H/cgQLqRiwiHlebBXTxVCyIMP35Pqsd8Zx4pKFDpZN98vtcbwqgxW Kws5q4QOYaMvDaIs5MufFFt7ZcbHKTne3IX4YDkbp1Wqw2VR0IRN6VWiIpWHMZgb7klc=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l66yn-0002dH-HJ; Sun, 31 Jan 2021 08:17:09 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEUCAwQWLiguZUk1 iV1KlnNorJaLs6eQx7es2Mrb8OR9foD///93P9TBAAAAAWJLR0QLH9fEwAAAAAd0SU1FB+UBHwcA Fk7c7TwAAAGXSURBVDjLjZO9doIwGIaDW50Ap3ZSYgfGErgAEU/3SsCxU1svQGF0qYYb4Bi2unmX zRd+I3iOGXl4877fTxCqj2ZaxA2oONF3krLmOzJMfB8ENWCD4Ct5EFg1AItHgFaDKBlQrASIk1Pa MwcA/yvAIBVIbsCsUkB5LGuB3nqowDAdLEEkTboezqRVKHEn1jDApuM2cVsPzcCWMweBLIN3FRgT qWBdhWEIYC096ZG2wOb8jWDLw2UTAejSgF+2vtgFl9SAoSnSZmhUINsnmPgrr4mboy3/1M6z64WI JXn9aCr/GxcvBbpy7sP2LNd1IWj6dEAZGhdX38VuEHp13yvwfLDXoAi9tfAogbxqO7UX4EFDuqpS 6WA+ypG9cOWGemWB0EQRV9ORacwJ9DCg7+o8NCOQoEnVvgJSgmAX3yhwrYiZqqhATHepMijxoORk abjfdAfVKGi82bOM9xVx+ptnXFWUi8hO2R2QJfkQEI06qh4lgPllP8c+iAAk5x6QPee8fxVMSWTq K2gJeNYHKVzF2T0waA5X8X/c7Q0PlpjslwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wMS0zMVQw NzowMDoyMiswMDowMJltWHMAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDEtMzFUMDc6MDA6MjIr MDA6MDDoMODPAAAAAElFTkSuQmCC X-Now-Playing: Rothko's _A Negative For Francis_: "Vessel Heaven" Date: Sun, 31 Jan 2021 08:17:04 +0100 In-Reply-To: <838s8aak8j.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 30 Jan 2021 10:42:52 +0200") Message-ID: <87r1m1vamn.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> This doesn't work: >> M-x shell RET xdg-open /tmp/test.pdf RET > > How about asking the xdg-open developers to help us figure out the > reason? Or, failing that, debug xdg-open in the problematic > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org, gbiotti@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> This doesn't work: >> M-x shell RET xdg-open /tmp/test.pdf RET > > How about asking the xdg-open developers to help us figure out the > reason? Or, failing that, debug xdg-open in the problematic > situations to find out what fails there and why? E.g., could it be > that it fails because stdin/stdout is a PTY? what happens if you bind > process-connection-type to nil when starting the async subprocess? I'm unable to reproduce the problem at all -- all the various ways of calling xdg-open work fine for me (on this Debian bullseye laptop w/ Gnome Shell). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 06:15:40 2021 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 11:15:41 +0000 Received: from localhost ([127.0.0.1]:56488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ahf-00043b-5M for submit@debbugs.gnu.org; Sun, 31 Jan 2021 06:15:40 -0500 Received: from mail-lj1-f182.google.com ([209.85.208.182]:44475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ahb-00043K-RV for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 06:15:37 -0500 Received: by mail-lj1-f182.google.com with SMTP id f2so15892440ljp.11 for <44824@debbugs.gnu.org>; Sun, 31 Jan 2021 03:15:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3edpCpqKI7hnoT89KMr9wfnUnm4cDfXXBtQyhYtCaGg=; b=Vfq85Bzek9lOquYqpQNoQHY/fuQ6bLetp/bk51Giucv0Ee1ls53lcWHJ44OaoYMHT7 ghEcX8TGkrQRO0Pt52qFYWTukZWLAPym1zDZEXYcv9alkyji3CK7aXsPfmWd5M04yVId xA9ikpUnk9gmkJ4yv7p35LxVPaKkI3d/zDuGzytMiK8e5t7ukA22S3f8dyGXi2ztByTS j3PN4CM9jzcdIls9f27fUoPCgmPwidBf5KfOlyb98wD90H+xW6h3yQD8Y/7wmREQ0JE2 IqUdrg+nSMljmbBsUET3YExK86Dsb243UVY68LZNRYiWd4C9NfBSEDy7yVIXmi1BcL5A /QtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3edpCpqKI7hnoT89KMr9wfnUnm4cDfXXBtQyhYtCaGg=; b=czcZ48fKEnN4AJu27HOJKYpbfHsQIO9+fbf2giTcYdE9j/Z+q+JpMDw1g3n2pEEQTo rJhKyUowVa1EKkXRfVFr5VvNbJRfAb+bLGK8FVWTNZXxs3mh6I2QpTP7PkQbtF1vPEZ2 IxWHjUOqbNfLfD2Uvnvs4KjoDxp11ipUcaWcEOdtO2MXms/Jg46MOayd403AnOYvR6Vn X74bjNmdicujYm0wOP57QLy81cWFRcKOuR41HLMbBVZy5eH4lmFJ0BKlju7MBDjb65xF YhZe/nFdLcqCuDX9j9xnV7HGClrmoeW/EI+/6DDdq9h86Z/3evHn9NSZp87sTBc7qTxa jvfw== X-Gm-Message-State: AOAM5302X9nI5aep5OyXFudzCn8ES8Cb+0N8Uj3cz9QrjXx1Jh/MF1zf 45blIT4wCfHfFkKLsXFd4sE= X-Google-Smtp-Source: ABdhPJwhbIy6BD7hys+l8TYgbazPRN1KIgVb1hAbd2XIyE4QqKgJ2ITMJfgHvLpr6J6IIzlRXew9DQ== X-Received: by 2002:a2e:3307:: with SMTP id d7mr7312923ljc.155.1612091729644; Sun, 31 Jan 2021 03:15:29 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id r2sm2646336lff.143.2021.01.31.03.15.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Jan 2021 03:15:29 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: 44824@debbugs.gnu.org References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> Message-ID: Date: Sun, 31 Jan 2021 18:15:27 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83lfca8k4e.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Bhavin, thank you very much for your clear report. I have tried once more with eshell session and this time I was lucky enough to reproduce the problem in both gnome and kde sessions on Ubuntu-20.04 f [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.182 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.182 listed in wl.mailspike.net] -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 Cc: Eli Zaretskii , gbiotti@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Bhavin, thank you very much for your clear report. I have tried once more with eshell session and this time I was lucky enough to reproduce the problem in both gnome and kde sessions on Ubuntu-20.04 f [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.182 listed in wl.mailspike.net] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.182 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) Bhavin, thank you very much for your clear report. I have tried once more with eshell session and this time I was lucky enough to reproduce the problem in both gnome and kde sessions on Ubuntu-20.04 focal On 30/01/2021 23:28, Eli Zaretskii wrote: >> From: Maxim Nikulin >> Date: Sat, 30 Jan 2021 22:58:06 +0700 >> >> The problem is that emacs does not expect that kde-open5 and thus >> xdg-open exits instantly. > > Why is that a problem, and how does it cause the invocation to fail, > i.e. not show the file in question? > >> The question could be addressed to KDE developers, but unlike the >> issue with temporary files, in my opinion, pty+SIGHUP problem should >> be fixed in org mode. > > What do you mean by "pty+SIGHUP problem" in this case? What exactly > is the problem? In the https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44824#22 message I have posted a link to another thread in emacs-orgmode mail list thread with my earlier strace results: https://lists.gnu.org/archive/html/emacs-orgmode/2021-01/msg00327.html Now I see that the problem with eshell is the same. I am not familiar with eshell, but it creates new shell process for every executed command. Actual handler is killed when underlying handler (kde-open5, "gio open") and thus xdg-open and the main shell process exit. Excerpts from strace obtained for a eshell buffer 2221 16:59:43.513366 execve("/bin/sh", ["/bin/sh", "/usr/bin/xdg-open", "/tmp/test.pdf"], 0x7fff74be7f10 /* 58 vars */ 2224 16:59:43.566865 execve("/usr/bin/gio", ["gio", "open", "/tmp/test.pdf"], 0x55ee8454ec18 /* 58 vars */) = 0 2229 16:59:43.711846 execve("/bin/sh", ["/bin/sh", "-e", "-u", "-c", "export GIO_LAUNCHED_DESKTOP_FILE_PID=$$; exec \"$@\"", "sh", "evince", "/tmp/test.pdf"], 0x55bb59e67bb0 /* 59 vars */ 2221 16:59:43.717489 +++ exited with 0 +++ 2229 16:59:43.719228 +++ killed by SIGHUP +++ Functions dealing with asynchronous processes in emacs, namely (start-process ...) and its siblings for shell commands calls (make-process :connection-type 'pty ...) that creates a pseudoterminal. It is redundant for applications that do not require an interactive terminal. When process (xdg-open this case) exits, pty is closed, all processes from the same terminal group receives SIGHUP. So actual handler is killed unless it has set signal handler or has detached from terminal session. To fix the problem it is better to use (make-process :connection-type 'pipe ...) that unfortunately has no higher level wrappers. "Pipe" process does not creates a pseudoterminal thus its children do not get SIGHUP on the exit of the main process. I am unsure concerning best values for other arguments however. The complication is that some mailcap entries have needsterminal flag, on the other hand they are likely irrelevant for GUI. There is no problem if okular or evince are called directly (without kde-open5 or "gio open" wrapper) since main process does not exit while window is open. Maybe the following command executed in eshell (namely eshell, not just shell) buffer is the best to demonstrate the problem (for those whose desktop environment is affected) sh -c "xdg-open /tmp/test.pdf; sleep 5" The window with file content appears for 5 seconds then the viewer is killed. On 31/01/2021 16:09, tomas@tuxteam.de wrote: > This chaotic behaviour gives me the impression that it's an > environment thing: desktop environments have the tendency to prime > the environment variables in "creative" ways, often different from > what a login shell would do. Certainly the behavior depends on the desktop environment. You could check which DE-specific handler is called (and factor-out xdg-open) with sh -x /usr/bin/xdg-open /tmp/test.pdf As to other options, M-! executes the process synchronously and is not affected. M-& has the same pty+SIGHUP problem. I am almost sure that I have tried eshell before, but I have no idea why I have not noticed the problem that time. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 06:37:15 2021 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 11:37:15 +0000 Received: from localhost ([127.0.0.1]:56495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6B2Y-0004oE-Nq for submit@debbugs.gnu.org; Sun, 31 Jan 2021 06:37:15 -0500 Received: from mail.tuxteam.de ([5.199.139.25]:50139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6B2V-0004o1-Tu for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 06:37:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:Date; bh=jfLxHRA+eGRZletdSIe7YOyQ+j96Labn60w8citqm6k=; b=C2tPBVjMiAiyWt8/Tj+AeSUvYcO007QdanNL1is8PXmsHw157RNlfq62RMj0MPxF2u4L36YDxddQgr4e6+Ruv9STuCeL5LtTAtZFsHdOvTt4iKJ/FpPF9vvbtU3dvTtTD+PlFJmPnKxEWX3tZAEi5HpasCdaidJ0RXkuAaHeHAt7HpdVM3ejMPdkCTmSLZ12Mn7IfXxdHpv0PSmCoTRXNcG6W3gnxpWlFEVli25BNkBPjlor9bC7StQmV6pFIYQUgiDWn4cZ4vxa2NeKw5T89N8z9GpldyBm5vyHaOzgTkpCpv4FWjCjqsYAnD0fxhoprPLirU3O7IDth6+5559UzQ==; Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1l6B2U-0005jp-T2; Sun, 31 Jan 2021 12:37:10 +0100 Date: Sun, 31 Jan 2021 12:37:10 +0100 To: Maxim Nikulin Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it Message-ID: <20210131113710.GD15764@tuxteam.de> References: <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C+ts3FVlLX8+P6JN" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: Eli Zaretskii , 44824@debbugs.gnu.org, gbiotti@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --C+ts3FVlLX8+P6JN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 31, 2021 at 06:15:27PM +0700, Maxim Nikulin wrote: > Bhavin, thank you very much for your clear report. I have tried once > more with eshell session and this time I was lucky enough to > reproduce the problem in both gnome and kde sessions on Ubuntu-20.04 > focal [...] > 2221 16:59:43.717489 +++ exited with 0 +++ > 2229 16:59:43.719228 +++ killed by SIGHUP +++ Good catch. > On 31/01/2021 16:09, tomas@tuxteam.de wrote: > >This chaotic behaviour gives me the impression that it's an > >environment thing [...] > Certainly the behavior depends on the desktop environment. You could > check which DE-specific handler is called (and factor-out xdg-open) > with >=20 > sh -x /usr/bin/xdg-open /tmp/test.pdf >=20 > As to other options, M-! executes the process synchronously and is > not affected. M-& has the same pty+SIGHUP problem. >=20 > I am almost sure that I have tried eshell before, but I have no idea > why I have not noticed the problem that time. Yes, but in this case it seems I was barking up the wrong tree :) Cheers & thanks - t --C+ts3FVlLX8+P6JN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmAWlmYACgkQBcgs9XrR2kYr/QCeMiw7k5Q5KmDzXEgoxzbJF6PV 2CAAniyz8QTCvRhRR/DBf6sJlfSyquDb =M0ak -----END PGP SIGNATURE----- --C+ts3FVlLX8+P6JN-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 10:05:46 2021 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 15:05:47 +0000 Received: from localhost ([127.0.0.1]:57671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6EIM-0003hf-Jx for submit@debbugs.gnu.org; Sun, 31 Jan 2021 10:05:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6EI8-0003h9-K6 for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 10:05:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34013) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6EI3-0002iN-FD; Sun, 31 Jan 2021 10:05:27 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1152 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l6EHo-0006gN-Kc; Sun, 31 Jan 2021 10:05:26 -0500 Date: Sun, 31 Jan 2021 17:05:37 +0200 Message-Id: <83y2g96ta6.fsf@gnu.org> From: Eli Zaretskii To: Maxim Nikulin In-Reply-To: (message from Maxim Nikulin on Sun, 31 Jan 2021 18:15:27 +0700) Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org, gbiotti@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Maxim Nikulin > Cc: Eli Zaretskii , gbiotti@gmail.com > Date: Sun, 31 Jan 2021 18:15:27 +0700 > > Now I see that the problem with eshell is the same. I am not familiar > with eshell, but it creates new shell process for every executed > command. Actual handler is killed when underlying handler (kde-open5, > "gio open") and thus xdg-open and the main shell process exit. What do you mean here by "actual handler" and "underlying handler"? > Functions dealing with asynchronous processes in emacs, namely > (start-process ...) and its siblings for shell commands calls > (make-process :connection-type 'pty ...) that creates a pseudoterminal. > It is redundant for applications that do not require an interactive > terminal. When process (xdg-open this case) exits, pty is closed, all > processes from the same terminal group receives SIGHUP. So actual > handler is killed unless it has set signal handler or has detached from > terminal session. > > To fix the problem it is better to use (make-process :connection-type > 'pipe ...) that unfortunately has no higher level wrappers. Wouldn't it work to let-bind process-connection-type to nil around the function that starts the async subprocess? And I still don't understand why some people (like Lars) cannot reproduce the problem at all -- the issue sounds like something that should fail deterministically on any GNU/Linux system. What am I missing? From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 10:17:51 2021 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 15:17:51 +0000 Received: from localhost ([127.0.0.1]:57688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6EU3-00041E-5j for submit@debbugs.gnu.org; Sun, 31 Jan 2021 10:17:51 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:54937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6EU1-000416-C2 for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 10:17:50 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4DTF7c0vsWz1rwvn; Sun, 31 Jan 2021 16:17:47 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4DTF7b5YgCz1tYV5; Sun, 31 Jan 2021 16:17:47 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 98tvC-yR7cO3; Sun, 31 Jan 2021 16:17:46 +0100 (CET) X-Auth-Info: wxWqegUOhiUmY22zH9U/LF14J9+wnVwkufyBPGR8dxD6AFtGJbAf68vFeu89ld8j Received: from igel.home (ppp-46-244-186-134.dynamic.mnet-online.de [46.244.186.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 31 Jan 2021 16:17:46 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 543A82C3627; Sun, 31 Jan 2021 16:17:46 +0100 (CET) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> X-Yow: Now, I think it would be GOOD to buy FIVE or SIX STUDEBAKERS and CRUISE for ARTIFICIAL FLAVORING!! Date: Sun, 31 Jan 2021 16:17:46 +0100 In-Reply-To: <83y2g96ta6.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 31 Jan 2021 17:05:37 +0200") Message-ID: <87sg6h9lut.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 44824 Cc: gbiotti@gmail.com, 44824@debbugs.gnu.org, Maxim Nikulin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.5 (-) On Jan 31 2021, Eli Zaretskii wrote: > And I still don't understand why some people (like Lars) cannot > reproduce the problem at all -- the issue sounds like something that > should fail deterministically on any GNU/Linux system. What am I > missing? If xdg-open doesn't need to start the program itself, and sends the request to an already running process instead, there won't be any problem with the disappearing session. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 10:21:51 2021 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 15:21:51 +0000 Received: from localhost ([127.0.0.1]:57697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6EXu-00047v-U1 for submit@debbugs.gnu.org; Sun, 31 Jan 2021 10:21:51 -0500 Received: from quimby.gnus.org ([95.216.78.240]:38690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6EXr-00047g-Aw for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 10:21:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oydAVLBFMA55/pPv9j10xVH2bNdd7LQKUvukecqo53o=; b=mtWrAXghT/VRZ/7wTdJObryGg7 zONsdmEhvnzjhB2763U2ic5GhhsJD9OupKpEV0xs7NNULwa4m2O4PGOBzI0ZiWX2NIzfX4h7qLYee b4Q3cYytkCiaTPHlfs92a6ONVeOsoi9+UaNSCfqhIriUMkP0wPM5eOuOFKFyUDWl3SKU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6EXf-0006vx-PD; Sun, 31 Jan 2021 16:21:40 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEVsdXsdFBTh08v/ //8dPTZQAAAAAWJLR0QDEQxM8gAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB+UBHw8UJdGx CscAAAFbSURBVCjPTdG9bsIwEAfwAxUJeaJRIiGmlgn5KRIEQzOFyNehT1DxFFEm5KkdWJiCpUru /yl751BElA//ch92HJoxE02YuSEifZQKN8LRI3IF39Kenh+Q0lT3GuaS0qsRTQJXcu0P7g5X0i3S yIl4g2Nugd0jtMZxkxA1cqiWcm9Cl2rKldy36NKklRkKPl7mE8H+bRsLrrOoKGg6zHibDVrjqL9O uPZgrdn0seIaUeDyjYl7wa+CjJcGH1ONcGlxKjRtJtglNJkdtIHBlXkBRF3VGq/sOttDGjjyPy7v jIemtb54zwfrQ9oqe26ziIum8WHN7SoGk9KqwMZgOCbwoqgt4meC+26WMosF7Znzr7wXACS/se2p g4dA9rwOp5cxEhtZsF8DQYB5UQMWehBwFuj7BJ0EYwNFxHiQFYRxHGjqC4vQjxiMfDaN7Ug+vJah 0fYELxH843RH+ANNCdcrFLJgDgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wMS0zMVQxNToyMDoz NyswMDowMKLAmrYAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDEtMzFUMTU6MjA6MzcrMDA6MDDT nSIKAAAAAElFTkSuQmCC X-Now-Playing: Mimi Goese and Ben Neill's _Life You Are_: "Cuckoo" Date: Sun, 31 Jan 2021 16:21:34 +0100 In-Reply-To: <83y2g96ta6.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 31 Jan 2021 17:05:37 +0200") Message-ID: <87h7mxt9mp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > And I still don't understand why some people (like Lars) cannot > reproduce the problem at all -- the issue sounds like something that > should fail deterministically on any GNU/Linux system. What a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: gbiotti@gmail.com, 44824@debbugs.gnu.org, Maxim Nikulin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > And I still don't understand why some people (like Lars) cannot > reproduce the problem at all -- the issue sounds like something that > should fail deterministically on any GNU/Linux system. What am I > missing? The recipe said to start with `M-x shell' -- I wasn't able to reproduce the problem there. But with `M-x eshell' I can repeat the problem here, too. Perhaps the recipe was wrong? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 10:34:13 2021 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 15:34:13 +0000 Received: from localhost ([127.0.0.1]:57702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ejs-0006WT-3W for submit@debbugs.gnu.org; Sun, 31 Jan 2021 10:34:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ejo-0006WG-UR for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 10:34:10 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34517) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6Ejj-0007jC-3V; Sun, 31 Jan 2021 10:34:03 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2925 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l6Eji-0000z0-CC; Sun, 31 Jan 2021 10:34:02 -0500 Date: Sun, 31 Jan 2021 17:34:26 +0200 Message-Id: <83r1m16ry5.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-Reply-To: <87sg6h9lut.fsf@igel.home> (message from Andreas Schwab on Sun, 31 Jan 2021 16:17:46 +0100) Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <87sg6h9lut.fsf@igel.home> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44824 Cc: gbiotti@gmail.com, 44824@debbugs.gnu.org, m.a.nikulin@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Andreas Schwab > Cc: Maxim Nikulin , 44824@debbugs.gnu.org, > gbiotti@gmail.com > Date: Sun, 31 Jan 2021 16:17:46 +0100 > > On Jan 31 2021, Eli Zaretskii wrote: > > > And I still don't understand why some people (like Lars) cannot > > reproduce the problem at all -- the issue sounds like something that > > should fail deterministically on any GNU/Linux system. What am I > > missing? > > If xdg-open doesn't need to start the program itself, and sends the > request to an already running process instead, there won't be any > problem with the disappearing session. Ah, okay. Lars, could this be what happens on your system? From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 10:58:11 2021 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 15:58:11 +0000 Received: from localhost ([127.0.0.1]:57754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6F74-00076X-Mj for submit@debbugs.gnu.org; Sun, 31 Jan 2021 10:58:11 -0500 Received: from mail-lj1-f176.google.com ([209.85.208.176]:40136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6F71-00075p-50 for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 10:58:09 -0500 Received: by mail-lj1-f176.google.com with SMTP id s18so16449681ljg.7 for <44824@debbugs.gnu.org>; Sun, 31 Jan 2021 07:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:cc:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=BoToWCHgyHVgaxYvHcJrQv1brzS1BCaWsjbmPp+pWOE=; b=UiTbjhegZIrdjVgB5hvV6qCmISI8Ri/wfk/avVqPLt9DVKKpW5/vuFws+NK9GA+Fb7 jbHUNKQlFnb5p2cQNamdJUv+OVRCfHErXVsaWgFQUwdvELxHLZWkX5aUsNJosLx4TtDg MFGyU8qgkzqJU4Kwyxlp8RCZODNNE5HJTblawa7MD+YmrX/z4+3BTWDqyDRaUHi/ukqQ wKp+CvYWWaGuhnw+N8rwNxLK0r7clK/H4rEp9D0zmiNuKrwlmLpNHoa+oC0DZy00tO7c B8vE6MxAseRLUpnE2vs6+il6KwInUufOONxEMmM8dfUGa7JIg0GdOMILy4sppwxMZJ7n tveg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BoToWCHgyHVgaxYvHcJrQv1brzS1BCaWsjbmPp+pWOE=; b=FXkjGKDJWdDYUFSVf+mRvPi+YcsoNXp+UwZS4NeYHDKaXOVDN27jSMZ+KE+BJgPFlu ZImmqKq8V+gUCtA89c99oYQcIMHCVlzXDTzVqn/SA1wfmK/ZVyOQOaAHQsiU+K6wFvlz CQ25cb+JzciGvurkHZUSwbZTS5q9PI0kzCYcQ59+DKcQxLxTBvy/bBXh/TPeXbV9FW5g DZZcQ63nqu0Q9uZNeujqHgssjGGDBxcs9vW045Jz7+THYUsPtVWXrbfQuahobl6644c7 FFt++EGgZYVBW0Ej+uuLH7WWblFu2Ft82iM2h602sa95dLQjD/OtxwHhsZnnV+NwSsrq cdyg== X-Gm-Message-State: AOAM533to121izmB0/4Jzj1/1pBKKJZP+iEW92ECefarPRezsF4bCIt7 lHvygXA2NLK5y6rulmDmOZMhUm16yuc= X-Google-Smtp-Source: ABdhPJxqIuZAAXznbuWVBwWX3aZUEOwvI27lVszFSMvf1LOlok9wYMNZN5Al0zGcE4MXYKIrQbH2dw== X-Received: by 2002:a2e:7603:: with SMTP id r3mr7508886ljc.328.1612108680616; Sun, 31 Jan 2021 07:58:00 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id k1sm1236440ljj.105.2021.01.31.07.57.59 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Jan 2021 07:57:59 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> Message-ID: <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> Date: Sun, 31 Jan 2021 22:57:57 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83y2g96ta6.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 4.7 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 31/01/2021 22:05, Eli Zaretskii wrote: >> From: Maxim Nikulin >> Date: Sun, 31 Jan 2021 18:15:27 +0700 >> >> Now I see that the problem with eshell is the same. I am not familiar >> with eshell, bu [...] Content analysis details: (4.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.2 MISSING_HEADERS Missing To: header -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.176 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.176 listed in wl.mailspike.net] -0.1 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.7 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 31/01/2021 22:05, Eli Zaretskii wrote: >> From: Maxim Nikulin >> Date: Sun, 31 Jan 2021 18:15:27 +0700 >> >> Now I see that the problem with eshell is the same. I am not familiar >> with eshell, bu [...] Content analysis details: (3.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.176 listed in wl.mailspike.net] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.176 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.2 MISSING_HEADERS Missing To: header -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.1 NICE_REPLY_A Looks like a legit reply (A) On 31/01/2021 22:05, Eli Zaretskii wrote: >> From: Maxim Nikulin >> Date: Sun, 31 Jan 2021 18:15:27 +0700 >> >> Now I see that the problem with eshell is the same. I am not familiar >> with eshell, but it creates new shell process for every executed >> command. Actual handler is killed when underlying handler (kde-open5, >> "gio open") and thus xdg-open and the main shell process exit. > > What do you mean here by "actual handler" and "underlying handler"? - actual handler: okular, evince, etc. - underlying handler is what xdg-open actually calls: kde-open5, "gio open", etc. and that maps file type to particular .desktop (or mailcap) handler. >> To fix the problem it is better to use (make-process :connection-type >> 'pipe ...) that unfortunately has no higher level wrappers. > > Wouldn't it work to let-bind process-connection-type to nil around the > function that starts the async subprocess? Sorry, for me it easier to reason how to express it in terms of system calls and terminal process groups than if let-bind could override a variable when lexical-bind is set to true. > And I still don't understand why some people (like Lars) cannot > reproduce the problem at all -- the issue sounds like something that > should fail deterministically on any GNU/Linux system. What am I > missing? On 31/01/2021 22:17, Andreas Schwab wrote: > > If xdg-open doesn't need to start the program itself, and sends the > request to an already running process instead, there won't be any > problem with the disappearing session. I have been tempting to say that it is a race (either request is completed before SIGHUP or not) since Christopher Miles posted a link to stackexchange and I have realized the actual effect of an antidaemonizing cast I noticed earlier in a package related to org mode. On the other hand, I am not familiar with kde and gnome internals. I guess they could use a kind of server processes but I have no idea how to arrange parts for a convincing demonstration. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 11:33:22 2021 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 16:33:22 +0000 Received: from localhost ([127.0.0.1]:57820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ff4-00083k-Ca for submit@debbugs.gnu.org; Sun, 31 Jan 2021 11:33:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ff0-00083V-Df for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 11:33:16 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35202) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6Fev-0005rr-5C; Sun, 31 Jan 2021 11:33:09 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2664 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l6Feu-00030d-K9; Sun, 31 Jan 2021 11:33:08 -0500 Date: Sun, 31 Jan 2021 18:33:31 +0200 Message-Id: <83o8h56p7o.fsf@gnu.org> From: Eli Zaretskii To: Maxim Nikulin In-Reply-To: <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> (message from Maxim Nikulin on Sun, 31 Jan 2021 22:57:57 +0700) Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Maxim Nikulin > Date: Sun, 31 Jan 2021 22:57:57 +0700 > Cc: 44824@debbugs.gnu.org > > >> To fix the problem it is better to use (make-process :connection-type > >> 'pipe ...) that unfortunately has no higher level wrappers. > > > > Wouldn't it work to let-bind process-connection-type to nil around the > > function that starts the async subprocess? > > Sorry, for me it easier to reason how to express it in terms of system > calls and terminal process groups than if let-bind could override a > variable when lexical-bind is set to true. Well, I think we should try this, because if it works, it will show us a way to fix the problem. (I don't see how lexical-binding could interfere with let-binding.) From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 12:07:23 2021 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 17:07:23 +0000 Received: from localhost ([127.0.0.1]:57868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6GC2-0000Ss-TC for submit@debbugs.gnu.org; Sun, 31 Jan 2021 12:07:23 -0500 Received: from mail-lf1-f51.google.com ([209.85.167.51]:44566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6GBy-0000Sc-7A for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 12:07:22 -0500 Received: by mail-lf1-f51.google.com with SMTP id p21so19532848lfu.11 for <44824@debbugs.gnu.org>; Sun, 31 Jan 2021 09:07:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=DD8d4lHYpebU6qRKkbM/jbZ8awnyaFEKC6RsBx9ekaA=; b=rVLzB8exTneGWbZD+uKMhJaS3b9Xz4iGt775J6sH89Z8GYWm0EYuLFjcHWuOai6ojY KHCa+baJkWxdvZqonsIvqb1lyzTi+jr261iFgZDsmQr+4q4ZcwvpPyVnbnwIFH7YjbxN ZrKl2kAq7qSSsaDCRbhxNs6T5jBM32CwAtyufbhEw0xjPeAg+Rlw3WO68K5oUSEE3Cqx Hizf6xRpLRJRyevRgMBjyjvImt+ps4YOzJCjMPEq16jkZ0/Tr3E7U/Z6EFocMVeE+5M5 2qOYufpVr61oL7JpfmenZaQ4+0D+zArTXLKPJQIZy0gcWxH1ErbyhH2veoDtnyUeZS+K XaNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DD8d4lHYpebU6qRKkbM/jbZ8awnyaFEKC6RsBx9ekaA=; b=oSgl22QZM2rmh27MdQ3taknvu7y7H65RVsrA99BKvnIWi3JI34Ob83YixsWqtOplK7 K1WCCE/8bfl2VIw+wS0WqkORAkBC4nIODXJ+EGUhsw4q2lm9qh+wAvOSf38xZQZQCZe1 WJqyQ4WLygq+kF7qNPlxj+SHZ9LOc4Xg/7/FBA83omzhv9e0mF+RiGbqCK4Oj7c4XPp6 +nENQQeAek3G1lKVZjj11jwfg+xSqjz38yeN8D91SPkIG8sOrDvpp7YkdOoAl7vEXUJj EJ1uEx8pfK1Aih9dW5YTYYfgnsqkVRvA5AfD8dZo+UUXNlMvTsfXjZRRx1VjwTPwfS3P /stA== X-Gm-Message-State: AOAM530YZnLjbMAkdZWbJeW8X/8tgMeBQh9jtWsFrtnwCU0l1IY3ZSNU aPMGb8DuE9HdvhhaEcrlBcCLE1JmMeQ= X-Google-Smtp-Source: ABdhPJzGC2CPNO3posdyflz6ccLnSffMPdYrj9OX7JOfw/Mc1KJUPvx60A4J4z9zwogF22VsM9yv9g== X-Received: by 2002:a05:6512:234d:: with SMTP id p13mr6397058lfu.87.1612112831865; Sun, 31 Jan 2021 09:07:11 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id n4sm802642ljg.101.2021.01.31.09.07.11 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Jan 2021 09:07:11 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: 27.1; Org export as pdf and open file does not open it To: 44824@debbugs.gnu.org References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf@gnu.org> Message-ID: <618feb1b-9c84-3fec-67cd-218b52d71489@gmail.com> Date: Mon, 1 Feb 2021 00:07:10 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83o8h56p7o.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 31/01/2021 23:33, Eli Zaretskii wrote: >> >>>> To fix the problem it is better to use (make-process :connection-type >>>> 'pipe ...) that unfortunately has no higher level wrappers. >>> >>> Wouldn' [...] Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.167.51 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.167.51 listed in list.dnswl.org] -0.1 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 31/01/2021 23:33, Eli Zaretskii wrote: >> >>>> To fix the problem it is better to use (make-process :connection-type >>>> 'pipe ...) that unfortunately has no higher level wrappers. >>> >>> Wouldn' [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.167.51 listed in wl.mailspike.net] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.181 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.167.51 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.1 NICE_REPLY_A Looks like a legit reply (A) On 31/01/2021 23:33, Eli Zaretskii wrote: >> >>>> To fix the problem it is better to use (make-process :connection-type >>>> 'pipe ...) that unfortunately has no higher level wrappers. >>> >>> Wouldn't it work to let-bind process-connection-type to nil around the >>> function that starts the async subprocess? >> ... > Well, I think we should try this, because if it works, it will show us > a way to fix the problem. (I don't see how lexical-binding could > interfere with let-binding.) It is not a great problem to use make-process: https://lists.gnu.org/archive/html/emacs-orgmode/2021-01/msg00364.html I think that at least a :sentinel should be added to improve error reporting. The code just before these lines has another problem (I hope it is really rare): https://lists.gnu.org/archive/html/emacs-orgmode/2021-01/msg00353.html I would avoid shell since direct execution of the handler should be more robust, e.g. quoting of arguments is not necessary. Unfortunately RFC on mailcap states that command is executed by shell. On the other hand only a few of viewer entries have commands that could not be handled without shell. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 18 07:56:32 2021 Received: (at 44824) by debbugs.gnu.org; 18 Feb 2021 12:56:32 +0000 Received: from localhost ([127.0.0.1]:46383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCirA-0005kT-3C for submit@debbugs.gnu.org; Thu, 18 Feb 2021 07:56:32 -0500 Received: from mail-lf1-f45.google.com ([209.85.167.45]:39717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCir8-0005kH-Sr for 44824@debbugs.gnu.org; Thu, 18 Feb 2021 07:56:31 -0500 Received: by mail-lf1-f45.google.com with SMTP id v30so6427484lfq.6 for <44824@debbugs.gnu.org>; Thu, 18 Feb 2021 04:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:newsgroups:references:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=/GiwDXfWIl3IHp4T1sdYlGmQyH4jbX2ckTIvyN0sOoU=; b=eWd2scP7mGqh8tVEP9mrSskzmhThNJiYqStQGj9bf/81TTZBhDIdLQgqpOcX9somOa alz5V59ra46jORVlVOVsDc+GawknJpa9I2pSkVv1OGbm4xUQ+8lh8psH+c9I4zl3Jwdr zWN0Y939b8y8c+/c3F/MucRjfvUQgBEsRJs1umfEsGwoTEjS//eIuUH1phc2f5bdlMYl 88AW5K5X06vMHcY0x5LgwSH980UcAvPCej9K+GESvfHYgk7ZrVN5iEmAxWPr13fN4jMO PMzPgkPcu5l6bs6gxwzoBkRf2CedYnF4nk6DGrRGZInlTrN5QG7liiUhMEHMciA6/aN9 vAeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:newsgroups:references :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=/GiwDXfWIl3IHp4T1sdYlGmQyH4jbX2ckTIvyN0sOoU=; b=XK05lcngoQDCl+Wy8lxh6Ow7fE0WHLECfUwtI4XgW/yv3xCJL5RPbN1SyOd8wpQ9XL Jf10ZCs/eNP6a1+zFkdFD/Fxo0ftmsselqrCEdNkihuFGZzWJwlzPYwu+ViZJ700e3UU U/R0iYXZ1L5FC1lXYmL88e+a/rygt2Sn7KCP7PgktA11QATAFNU8Wnl1kLiSU/hPJb2o T8xlu07YN515foyx+1M2dVbm3CSlyp9++By9U06wVpSrt9fEvB6sH9jZDWhzTiGKLpgM VeSyeyu+40AGSeNNT1UTtvJzCCUObYSjAFelDb7mUPjmT9GiTTLj7auDfLZSo9jqBsGp PoSg== X-Gm-Message-State: AOAM5331MKqh/y3FYpY2yTpKPRTbO7KEB4ZJ0OS+W+kvht/vqKzTlCzN 0mSvbZwXW5QUJQYXeqdSN/LCunDsVME= X-Google-Smtp-Source: ABdhPJy/davcDVOJpYzxoEAPp+Hu2gK8nCszmX+4o+19YOlq7s+JAgh9l7P095W4StX9x9jVaC7hnQ== X-Received: by 2002:ac2:5f7b:: with SMTP id c27mr1126384lfc.514.1613652984494; Thu, 18 Feb 2021 04:56:24 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id r2sm595421lfn.275.2021.02.18.04.56.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Feb 2021 04:56:23 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: [PATCH] org.el: Avoid xdg-open silent failure To: Maxim Nikulin Newsgroups: gmane.emacs.orgmode References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf__8661.17158891342$1612110869$gmane$org@gnu.org> Message-ID: Date: Thu, 18 Feb 2021 19:56:03 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83o8h56p7o.fsf__8661.17158891342$1612110869$gmane$org@gnu.org> Content-Type: multipart/mixed; boundary="------------9156A09DD498A91DAE617094" Content-Language: en-US X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------9156A09DD498A91DAE617094 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 31/01/2021 23:33, Eli Zaretskii wrote: >> From: Maxim Nikulin >> Date: Sun, 31 Jan 2021 22:57:57 +0700 >> Cc: 44824@debbugs.gnu.org >> >>>> To fix the problem it is better to use (make-process :connection-type >>>> 'pipe ...) that unfortunately has no higher level wrappers. >>> >>> Wouldn't it work to let-bind process-connection-type to nil around the >>> function that starts the async subprocess? >> >> Sorry, for me it easier to reason how to express it in terms of system >> calls and terminal process groups than if let-bind could override a >> variable when lexical-bind is set to true. > > Well, I think we should try this, because if it works, it will show us > a way to fix the problem. (I don't see how lexical-binding could > interfere with let-binding.) I have prepared a patch that uses `make-process'. I hope, error reporting is improved a bit, but in the case of this particular problem failure is still quiet since xdg-open exits successfully. I could not estimate effect of such change on windows, so pipe process is used only on linux. I am unsure concerning mac however. Another question is if failure message should be suppressed when `waiting-for-user-input-p' returns truth to keep user prompt and input unaffected. --------------9156A09DD498A91DAE617094 Content-Type: text/x-patch; charset=UTF-8; name="open-file-pipe-process.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="open-file-pipe-process.patch" commit 0001bff24864ee16598b4701a05cf40e9abc83af Author: Max Nikulin Date: Wed Feb 17 16:35:58 2021 +0000 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. 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. diff --git a/lisp/org.el b/lisp/org.el index 7d8733448..a199a65c9 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -8645,6 +8645,15 @@ opened in Emacs." (when add-auto-mode (mapcar (lambda (x) (cons (car x) 'emacs)) auto-mode-alist)))) +(defun org--error-process-sentinel (proc event) + "Show a message if process failed (exited with non-zero code +or killed by a signal. Pass the function as :SENTINEL argument +of `make-process'." + (unless (string-match "finished" event) + (message "Command %s: %s." + (mapconcat 'identity (process-command proc) " ") + (substring event 0 -1)))) + ;;;###autoload (defun org-open-file (path &optional in-emacs line search) "Open the file at PATH. @@ -8766,7 +8775,17 @@ If the file does not exist, throw an error." (save-window-excursion (message "Running %s...done" cmd) - (start-process-shell-command cmd nil cmd) + (if (eq system-type 'gnu/linux) + ;; Handlers as "gio open" and kde-open5 start viewer in background + ;; and exit immediately. Avoid start-process since it assumes + ;; :connection-type 'pty and kills children processes with SIGHUP + ;; when temporary terminal session is finished. + (make-process + :name "org-open-file" :connection-type 'pipe :noquery 't + :buffer nil ; use "*Messages*" for debugging + :sentinel 'org--error-process-sentinel + :command (list shell-file-name shell-command-switch cmd)) + (start-process-shell-command cmd nil cmd)) (and (boundp 'org-wait) (numberp org-wait) (sit-for org-wait)))) ((or (stringp cmd) (eq cmd 'emacs)) --------------9156A09DD498A91DAE617094-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 18 09:48:20 2021 Received: (at 44824) by debbugs.gnu.org; 18 Feb 2021 14:48:20 +0000 Received: from localhost ([127.0.0.1]:46504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCkbL-0008U2-By for submit@debbugs.gnu.org; Thu, 18 Feb 2021 09:48:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCkbK-0008Tq-Ig for 44824@debbugs.gnu.org; Thu, 18 Feb 2021 09:48:18 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42750) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCkbF-000483-AB; Thu, 18 Feb 2021 09:48:13 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1711 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lCkbE-0001Mw-Fw; Thu, 18 Feb 2021 09:48:13 -0500 Date: Thu, 18 Feb 2021 16:48:26 +0200 Message-Id: <83a6s15t51.fsf@gnu.org> From: Eli Zaretskii To: Maxim Nikulin In-Reply-To: (message from Maxim Nikulin on Thu, 18 Feb 2021 19:56:03 +0700) Subject: Re: bug#44824: [PATCH] org.el: Avoid xdg-open silent failure References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf__8661.17158891342$1612110869$gmane$org@gnu.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Maxim Nikulin > Date: Thu, 18 Feb 2021 19:56:03 +0700 > Cc: 44824@debbugs.gnu.org > > I could not estimate effect of such change on windows, so pipe process > is used only on linux. I am unsure concerning mac however. On Windows Emacs always uses pipes, because we don't have PTYs there. And there's no xdg-open on MS-Windows anyway, so it's a moot point. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 19 07:30:03 2021 Received: (at 44824) by debbugs.gnu.org; 19 Feb 2021 12:30:03 +0000 Received: from localhost ([127.0.0.1]:48871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD4v5-0006Dy-8f for submit@debbugs.gnu.org; Fri, 19 Feb 2021 07:30:03 -0500 Received: from mail-lj1-f181.google.com ([209.85.208.181]:34163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD4v1-0006C3-5I for 44824@debbugs.gnu.org; Fri, 19 Feb 2021 07:30:01 -0500 Received: by mail-lj1-f181.google.com with SMTP id r23so19427591ljh.1 for <44824@debbugs.gnu.org>; Fri, 19 Feb 2021 04:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:cc:newsgroups:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=LPM9FIRh2y6zukXtNgS74imXzF+tbuetYFMoDR76JLc=; b=KpY7qH8IaYxYtM9JwOEq7emGeF37BUOaRoOR0QDE6yOO6I5BeoLAUrjoQ3SRgPxIbQ k/r2gJr5LVSNidAzAJvezfzp4SH3Bnijz+dy5cO2E20xuht898d03pk/nwhJqrYRBiV8 hg/1knyBChlaH3pV3mkCXQ3bVbwZjgzdDeA+VDXM1poVsAJBGyaImhsLyCBWJgcIF7GU HtnqiAlDxCQbf/X6PLk8ihD00KiVUDKDD8gGlNFxMWFsRmra3j+gGzyeeP752pOfhDRT ljZPkW/jE6EN1a2yHOni4ljyi2/wzW41WQ05G5yWGWNCUkwf0AHXL3kauJRB0U8DqUtw tvlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:cc:newsgroups:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=LPM9FIRh2y6zukXtNgS74imXzF+tbuetYFMoDR76JLc=; b=gQTS01PVvumN/Yms4ynzksudT+XNRvL81wDQdowpU/13uHPUFyhZfa1nUJG+ZuNaxi m8UOFL/3VYg7PRJ0Af04JTtsQjtd1hmTRJDxRkfIZy/JsXLLcCeHPr68l0kXaowgRcKD W+BlnxBW5rV8xH9ryW3JhWqinOlWbhG2CQVIO8o4xMJRhG0sQLVALSr6x8ndPZxgBo3a K/tn25KBXt32PZbeitnI2k7F/0xK6/qQkFWJoEvLKevdxWHl1g0RmO2bE0QpOc0/e/I6 WJ8BvIKJyXSN+cDNVUe75Ga5vW4c2fbGj1SWg/cNhCUXUzjqLd4j+QE2hPh6GG0r/hPL 9AbA== X-Gm-Message-State: AOAM530t3m7sWo1ShIYoXDLMPpWF1+OWml+rGBRaIzbzToUTYLbDmCBa o4B5QUZbFQLSTJ6eHgwnYUd117o7NpI= X-Google-Smtp-Source: ABdhPJy23lffMiH8AvzwxEnPLybNhcoGH2wvHIgcTvQjwJUohK5pa6YcNMQ2FKA25CZo0O0sTfiLfQ== X-Received: by 2002:a2e:a368:: with SMTP id i8mr5219984ljn.455.1613737792804; Fri, 19 Feb 2021 04:29:52 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id a8sm942598ljp.21.2021.02.19.04.29.51 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Feb 2021 04:29:52 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: [PATCH] org.el: Avoid xdg-open silent failure Newsgroups: gmane.emacs.orgmode References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf__8661.17158891342$1612110869$gmane$org@gnu.org> <83a6s15t51.fsf__31631.6350990505$1613659778$gmane$org@gnu.org> Message-ID: <1a7077ea-c3ad-be6b-6303-f3ed225ec6f8@gmail.com> Date: Fri, 19 Feb 2021 19:29:49 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83a6s15t51.fsf__31631.6350990505$1613659778$gmane$org@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 18/02/2021 21:48, Eli Zaretskii wrote: >> From: Maxim Nikulin >> Date: Thu, 18 Feb 2021 19:56:03 +0700 >> >> I could not estimate effect of such change on windows, so pipe process >> is used only o [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.2 MISSING_HEADERS Missing To: header -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.181 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.181 listed in list.dnswl.org] 0.0 MALFORMED_FREEMAIL Bad headers on message from free email service -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) On 18/02/2021 21:48, Eli Zaretskii wrote: >> From: Maxim Nikulin >> Date: Thu, 18 Feb 2021 19:56:03 +0700 >> >> I could not estimate effect of such change on windows, so pipe process >> is used only on linux. I am unsure concerning mac however. > > On Windows Emacs always uses pipes, because we don't have PTYs there. > And there's no xdg-open on MS-Windows anyway, so it's a moot point. Should I consider your response as a suggestion to remove the `if' related to `system-type'? If I remember correctly, on windows it is possible to communicate with a process through stdin and stdout only if the application is compiled as a *console* one. That is why it is unclear for me, which component handles console or GUI distinction when process is specified as pipe in lisp code, and whether all arguments of `make-process', that I have used, are suitable on windows. "start file.pdf" executed in cmd.exe launches an application that does not block command prompt. In this sense it similar to background processes launched by kde-open5 or "gio open". However I am unaware if there is something similar to process groups on windows that leads to termination of all group members when leader process finishes. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 19 09:54:06 2021 Received: (at 44824) by debbugs.gnu.org; 19 Feb 2021 14:54:06 +0000 Received: from localhost ([127.0.0.1]:49058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD7AT-0003ON-Kt for submit@debbugs.gnu.org; Fri, 19 Feb 2021 09:54:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD7AQ-0003Ns-AI for 44824@debbugs.gnu.org; Fri, 19 Feb 2021 09:54:04 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50027) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lD7AL-0006N3-0p; Fri, 19 Feb 2021 09:53:57 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2944 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lD7AK-00055F-9X; Fri, 19 Feb 2021 09:53:56 -0500 Date: Fri, 19 Feb 2021 16:54:11 +0200 Message-Id: <83blcg2jn0.fsf@gnu.org> From: Eli Zaretskii To: Maxim Nikulin In-Reply-To: <1a7077ea-c3ad-be6b-6303-f3ed225ec6f8@gmail.com> (message from Maxim Nikulin on Fri, 19 Feb 2021 19:29:49 +0700) Subject: Re: bug#44824: [PATCH] org.el: Avoid xdg-open silent failure References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf__8661.17158891342$1612110869$gmane$org@gnu.org> <83a6s15t51.fsf__31631.6350990505$1613659778$gmane$org@gnu.org> <1a7077ea-c3ad-be6b-6303-f3ed225ec6f8@gmail.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Maxim Nikulin > Date: Fri, 19 Feb 2021 19:29:49 +0700 > Cc: 44824@debbugs.gnu.org > > > On Windows Emacs always uses pipes, because we don't have PTYs there. > > And there's no xdg-open on MS-Windows anyway, so it's a moot point. > > Should I consider your response as a suggestion to remove the `if' > related to `system-type'? Yes, that 'if' isn't necessary. > If I remember correctly, on windows it is possible to communicate with a > process through stdin and stdout only if the application is compiled as > a *console* one. That's true. But in this case we don't really want to communicate with the sub-process, do we? We just want to invoke it and let it run. So the fact that there's no way of communicating with the sub-process is not important here, as the pipes will not be used. We just need to specify pipes because that works around the problem with xdg-open. > "start file.pdf" executed in cmd.exe launches an application that does > not block command prompt. In this sense it similar to background > processes launched by kde-open5 or "gio open". However I am unaware if > there is something similar to process groups on windows that leads to > termination of all group members when leader process finishes. Things are fairly similar on Windows. But is this really relevant to the issue at hand? There's no xdg-open on Windows, so whatever problems you had with xdg-open will never happen on Windows. the proposed patch fixes the problem only on systems where org.el invokes the PDF viewer via xdg-open. Right? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 19 11:46:11 2021 Received: (at 44824) by debbugs.gnu.org; 19 Feb 2021 16:46:11 +0000 Received: from localhost ([127.0.0.1]:50266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD8uw-0000Gp-Pl for submit@debbugs.gnu.org; Fri, 19 Feb 2021 11:46:11 -0500 Received: from mail-lj1-f176.google.com ([209.85.208.176]:40012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD8us-0000G8-Rv for 44824@debbugs.gnu.org; Fri, 19 Feb 2021 11:46:09 -0500 Received: by mail-lj1-f176.google.com with SMTP id y7so21208779lji.7 for <44824@debbugs.gnu.org>; Fri, 19 Feb 2021 08:46:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:cc:newsgroups:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=85o83rAqlrVSdP2ZZPtfGpoOUteliKI8ata+sc2XTn4=; b=NZYmQkxubMDoc+sJOvy6s6w1K6koiGMrPUje2B6hGGzvXL7uOIp/HQ9YUyKeygKwSx mXHACqN8TVKzfkeMQzj9IvFQ4RNaUFARoHCfVhjjbF2bjXXMpESDsxV/6XHSAB6hy1n3 XjAwmVVY6lNdAeT1oxEAGG9wS2P4frpRsWOROir/UBf3oE6+Tg2NXYNQNLzW+gXNAZKw NGmvlYwx/GTcUaowqzH4bZtKwzpEdDet9jIxLBdf8JQgUYBIMc4uHsUx5L4iYnNTUtX9 BAAvHy8S0XF1gDqcXzDP2XCgA+wGJ+gZzPBdAZIT32m7K99hp4XeFADgcESvE1tZvQvr HRyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:cc:newsgroups:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=85o83rAqlrVSdP2ZZPtfGpoOUteliKI8ata+sc2XTn4=; b=jpNSedxBuJwbgxXDci/VQnbGGj1rY4b2f+eDAVD37QBrETcD341bKXsXWIXwvBcHCi 8r5/yy0DkZa7PnxeD0HZwcnWbbOAO0quU0vDtSV66LVmcRKl62mP+5OPhVFEnbmvVx7a dr5f4OD07Fo0vxY1/AiAxqBfNBX/wElejoj/xwCBrrutgRijLSkiM0BVD3YBu2vVw4B0 WeVnMBpyA2Xc8jvoMnace22sndeYWbkio91q6mdT5KZy8BBl0aqLf/wTuddgkBpwr3mT y7ZAkcwCKvsxxkWGhbXj1K7Tj+3+4FBAKnZgwGPj1pyRGoHs9xtoLx1fDmSiBZkDiNyk M+Jg== X-Gm-Message-State: AOAM531UMmFrg6TyE4o1SsmiBD1DFw9yO+H+IHj8LQPDEezE/uGCEqhV 9i15yWW70+VN8Vobp9JJThXbquo+LGE= X-Google-Smtp-Source: ABdhPJzRzgMB5zci7e7ZjusC9pKYCyWdu3OveI+W8ayeVr18EqjEBU2Q4JvxNzD2o5zRwQwkIgJiYw== X-Received: by 2002:a2e:7a07:: with SMTP id v7mr6064630ljc.463.1613753160324; Fri, 19 Feb 2021 08:46:00 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id u25sm1027862ljo.98.2021.02.19.08.45.59 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Feb 2021 08:45:59 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: [PATCH] org.el: Avoid xdg-open silent failure Newsgroups: gmane.emacs.orgmode References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf__8661.17158891342$1612110869$gmane$org@gnu.org> <83a6s15t51.fsf__31631.6350990505$1613659778$gmane$org@gnu.org> <1a7077ea-c3ad-be6b-6303-f3ed225ec6f8@gmail.com> <83blcg2jn0.fsf@gnu.org> Message-ID: Date: Fri, 19 Feb 2021 23:45:55 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83blcg2jn0.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 19/02/2021 21:54, Eli Zaretskii wrote: >> From: Maxim Nikulin >> Date: Fri, 19 Feb 2021 19:29:49 +0700 >> >>> On Windows Emacs always uses pipes, because we don't have PTYs there. >>> And there's n [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.2 MISSING_HEADERS Missing To: header -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.176 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.176 listed in list.dnswl.org] 0.0 MALFORMED_FREEMAIL Bad headers on message from free email service -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) On 19/02/2021 21:54, Eli Zaretskii wrote: >> From: Maxim Nikulin >> Date: Fri, 19 Feb 2021 19:29:49 +0700 >> >>> On Windows Emacs always uses pipes, because we don't have PTYs there. >>> And there's no xdg-open on MS-Windows anyway, so it's a moot point. >> >> Should I consider your response as a suggestion to remove the `if' >> related to `system-type'? > > Yes, that 'if' isn't necessary. Let's wait for comments comments from org developers. I do not mind to remove the `if' but they could ask for other changes. >> If I remember correctly, on windows it is possible to communicate with a >> process through stdin and stdout only if the application is compiled as >> a *console* one. > > That's true. But in this case we don't really want to communicate > with the sub-process, do we? We just want to invoke it and let it > run. So the fact that there's no way of communicating with the > sub-process is not important here, as the pipes will not be used. We > just need to specify pipes because that works around the problem with > xdg-open. The reason to switch to pipe process here is to avoid side effects of *terminal session*. PTY is redundant here. Pipe process is the only alternative available in emacs. Currently there is no data exchange with subprocess. Reading of stderr and stdout from the handler and its descendants could be useful to realize a cause of a problem when it happens. At least on linux it is enough to specify some buffer instead of `nil' or add a :filter function. The reason why I did not make such change is that Gtk applications tends to report significant number of failed asserts. I do not like to pollute the "*Messages*" buffer. I am in doubts if a dedicated buffer should be created for such purpose. Reading of stdout could be useful in mailcap handlers e.g. to display text from PDF file when only text terminal is available (no X11 or wayland). Currently emacs ignores "needsterminal" and "copiousoutput" flags in mailcap. Example of an entry for PDF: application/pdf; pdftotext -layout %s -; test=test -z "$DISPLAY"; copiousoutput Likely only a small part of users could benefit from such feature. >> "start file.pdf" executed in cmd.exe launches an application that does >> not block command prompt. In this sense it similar to background >> processes launched by kde-open5 or "gio open". However I am unaware if >> there is something similar to process groups on windows that leads to >> termination of all group members when leader process finishes. > > Things are fairly similar on Windows. But is this really relevant to > the issue at hand? There's no xdg-open on Windows, so whatever > problems you had with xdg-open will never happen on Windows. the > proposed patch fixes the problem only on systems where org.el invokes > the PDF viewer via xdg-open. Right? 1. It is not a problem of namely xdg-open. It is (mostly reasonable but with some caveats however) specific of DE-specific handlers as "gio open" and kde-open5. They exit just after spawning of a process with actual handler. (Just like "start file.pdf" on windows.) I am afraid that I could break something on windows, so I would prefer that somebody will test the changes on non-linux systems. 2. It is not specific to PDF files, the problem could happen with any format if wrapper handler such as "gio open" is invoked instead of e.g. direct execution of eog. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 18 23:50:12 2021 Received: (at 44824) by debbugs.gnu.org; 19 Mar 2021 03:50:12 +0000 Received: from localhost ([127.0.0.1]:48422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lN69M-00078z-2L for submit@debbugs.gnu.org; Thu, 18 Mar 2021 23:50:12 -0400 Received: from out2.migadu.com ([188.165.223.204]:23209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lN69J-00078m-Ki for 44824@debbugs.gnu.org; Thu, 18 Mar 2021 23:50:10 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1616125807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=x+6upk38U8HOTObXgg1ouoVGLNCPmX56juVRAw/qJG8=; b=0KDw1p5LishMbs1CI0I++wEPIpqTWZlfdzf8skP4YTgm+PnadcTTeog30q9EY2Y5xRvQuO nJ2UJb5GSskbANus7Scv6OsrkA3LwonCNL7D2KuYvtyB6rUT7Wq6N6IBi9wN53WHTd4ewb 36NKBRkOA4F2zngtBtmLrN5igr+QXngrpIrXNV3bAkizoZNbgY7kgopVTyeWh2Ad4p6Ob3 SzTbIXc8G0H5D4au9bNhGaLfPydxdkGN7beFpYYOeDhj+PSfqOrnclwQqVauDiBJwzeErt SHzCIDKIYT2aWXfRuzZ6oDjk9HgCY4vfPT+3mzPZla/LMRcPHRurtBpY/VPpmA== From: Kyle Meyer To: Maxim Nikulin Subject: Re: [PATCH] org.el: Avoid xdg-open silent failure In-Reply-To: References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf__8661.17158891342$1612110869$gmane$org@gnu.org> Date: Thu, 18 Mar 2021 23:50:06 -0400 Message-ID: <87zgyzls41.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44824 Cc: Eli Zaretskii , 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Maxim Nikulin writes: > 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. > > 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. Thanks for the detailed commit message. A few comments in addition to Eli's advice to drop the (eq system-type 'gnu/linux) condition... > diff --git a/lisp/org.el b/lisp/org.el > index 7d8733448..a199a65c9 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -8645,6 +8645,15 @@ opened in Emacs." > (when add-auto-mode > (mapcar (lambda (x) (cons (car x) 'emacs)) auto-mode-alist)))) > > +(defun org--error-process-sentinel (proc event) > + "Show a message if process failed (exited with non-zero code > +or killed by a signal. Pass the function as :SENTINEL argument Please rework the first sentence so that it fits on the first line, though I'd be in favor dropping the function and using a lambda in the make-process call. > +of `make-process'." > + (unless (string-match "finished" event) There's no need for substring matching, right? So it could be (equal event "finished\n") Or perhaps (when (and (memq (process-status proc) '(exit signal)) (/= (process-exit-status proc) 0)) ...) > + (message "Command %s: %s." > + (mapconcat 'identity (process-command proc) " ") s/'identity/#'identity/ > + (substring event 0 -1)))) > + > ;;;###autoload > (defun org-open-file (path &optional in-emacs line search) > "Open the file at PATH. > @@ -8766,7 +8775,17 @@ If the file does not exist, throw an error." > > (save-window-excursion > (message "Running %s...done" cmd) > - (start-process-shell-command cmd nil cmd) > + (if (eq system-type 'gnu/linux) > + ;; Handlers as "gio open" and kde-open5 start viewer in background s/as/such as/ ? > + ;; and exit immediately. Avoid start-process since it assumes ^ missing space > + ;; :connection-type 'pty and kills children processes with SIGHUP > + ;; when temporary terminal session is finished. > + (make-process > + :name "org-open-file" :connection-type 'pipe :noquery 't s/'t/t/ > + :buffer nil ; use "*Messages*" for debugging > + :sentinel 'org--error-process-sentinel > + :command (list shell-file-name shell-command-switch cmd)) > + (start-process-shell-command cmd nil cmd)) > (and (boundp 'org-wait) (numberp org-wait) (sit-for org-wait)))) > ((or (stringp cmd) > (eq cmd 'emacs)) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 20 11:45:48 2021 Received: (at 44824) by debbugs.gnu.org; 20 Mar 2021 15:45:48 +0000 Received: from localhost ([127.0.0.1]:53031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNdnP-0001SD-P7 for submit@debbugs.gnu.org; Sat, 20 Mar 2021 11:45:48 -0400 Received: from mail-lj1-f171.google.com ([209.85.208.171]:39635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNdnJ-0001Rw-QT for 44824@debbugs.gnu.org; Sat, 20 Mar 2021 11:45:45 -0400 Received: by mail-lj1-f171.google.com with SMTP id u4so15652410ljo.6 for <44824@debbugs.gnu.org>; Sat, 20 Mar 2021 08:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:newsgroups:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=7IDt7rtMz3R6+AVQq+zFTuxL8nuA+KWhUVAJ+1Dh1Dw=; b=tO4IsL4NKKIhZce23QcPFyEHTvJeA1n5Q2IBVSWog+ozH4VoLxZWbqNuX6quTE4EQQ MOUB+2x1BiqrOxm/HMtgLfUqMnm+4GbWy023O18iB5TIfupcDoFzWiXu18akSd2p91cx BY+JVSQSRHadlw1qq3Z1E1Ux8mhdfVFoF3ZTKkweagWLkVCgBwSnU0SRhkYg3aR4T3fQ ZCXFxpYFebDUUbNDJkJGfVBtuHCFLmOw7mz/PcmI8iUfoY1PIGqnkG5SB/s0ckZd1THU vo2D0aqyKiPhKl8DmHZUFG/cGXPeF/N3wcwWhi7NuD0CVPmgWAhuUXBjl0HyDhywC2Zk Rd9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:newsgroups:references:cc:message-id :date:user-agent:mime-version:in-reply-to:content-language; bh=7IDt7rtMz3R6+AVQq+zFTuxL8nuA+KWhUVAJ+1Dh1Dw=; b=JmphHWKadlwuxDQyyVZNHIoBGuI25ZH+eZ/WEbk3NHIx4w1vJkYfeqkZYKNWSm4JIo V+6B3Yu8qt++kKGS9ghqAwUiqcZRmU+A24NMyxgYJhTj+G5UMUaEulbZy5cCiSAzgrqk ygIgNQC7M/H54VFAL60Neeei8QJmEtkGZhUJy+gkprWAZcGI9j7ECdLiXm5doL88iDFI GoSxMYR2Oid2S31vQVoY4X4bZgHlxdTP/p0WhftAU9Ch+BDTvhU9aMMPeujpOkjXMd41 sJaFyGUh5yB64R4eWTgK0Zpq9huoNGBqSTtAoHOKcqOZuyQKui9hQIdyprvcTkCxacKf p5Mg== X-Gm-Message-State: AOAM531l1Vp5wISsgle8pGNW3a8lBKDI/n7izKsQ0qX7dNS/Z03kTunS G5+W5rRoim1zMgf2uGRLT1BsQtQDNyA= X-Google-Smtp-Source: ABdhPJxafbdXLGiGl4nfPrBD/p60hhv81X1vyJH3cz+yC3Rl0wE72mH1ZewUFnDyzY7A+8Fj2c5rrQ== X-Received: by 2002:a2e:87d5:: with SMTP id v21mr4049302ljj.195.1616255135328; Sat, 20 Mar 2021 08:45:35 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id v10sm963225lfb.238.2021.03.20.08.45.33 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Mar 2021 08:45:34 -0700 (PDT) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin Subject: Re: bug#44824: [PATCH] org.el: Avoid xdg-open silent failure Newsgroups: gmane.emacs.orgmode References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf__8661.17158891342$1612110869$gmane$org@gnu.org> <87zgyzls41.fsf@kyleam.com> Message-ID: <214cd672-a9c6-b7d4-754e-df2e552f2b2e@gmail.com> Date: Sat, 20 Mar 2021 22:45:16 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <87zgyzls41.fsf@kyleam.com> Content-Type: multipart/mixed; boundary="------------8A9F5E7AADCBE8693FAE8F3D" Content-Language: en-US X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 19/03/2021 10:50, Kyle Meyer wrote: > Maxim Nikulin writes: > A few comments in addition to Eli's advice to drop the > (eq system-type 'gnu/linux) condition... Feel free to commit the change suggested in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44824#82 instead of this patch. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) 1.2 MISSING_HEADERS Missing To: header -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.171 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.171 listed in wl.mailspike.net] 1.7 MALFORMED_FREEMAIL Bad headers on message from free email service -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 44824 Cc: 44824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 19/03/2021 10:50, Kyle Meyer wrote: > Maxim Nikulin writes: > A few comments in addition to Eli's advice to drop the > (eq system-type 'gnu/linux) condition... Feel free to commit the change suggested in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44824#82 instead of this patch. Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.171 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.171 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (m.a.nikulin[at]gmail.com) 1.2 MISSING_HEADERS Missing To: header 1.7 MALFORMED_FREEMAIL Bad headers on message from free email service -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) This is a multi-part message in MIME format. --------------8A9F5E7AADCBE8693FAE8F3D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 19/03/2021 10:50, Kyle Meyer wrote: > Maxim Nikulin writes: > A few comments in addition to Eli's advice to drop the > (eq system-type 'gnu/linux) condition... Feel free to commit the change suggested in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44824#82 instead of this patch. >> +(defun org--error-process-sentinel (proc event) >> + "Show a message if process failed (exited with non-zero code >> +or killed by a signal. Pass the function as :SENTINEL argument > > Please rework the first sentence so that it fits on the first line, > though I'd be in favor dropping the function and using a lambda in the > make-process call. My impression is that org-open-file function is already too long and complex. Another reason to use standalone function is that I am unsure if elisp compiler and interpreter are smart enough to reuse single instance of lambda. I was afraid that every opened file caused creation of new sentinel possibly with a closure containing chain of stack frames. On the other hand even in worst case memory footprint is negligible in comparison to any GUI viewer. >> + (unless (string-match "finished" event) > > There's no need for substring matching, right? So it could be > > (equal event "finished\n") I was surprised by final "\n" that is not always suitable and I was in doubts concerning its stability. I would prefer something like (starts-with event "finished") Certainly match-data is not necessary, so even match-string-p is better. > (when (and (memq (process-status proc) '(exit signal)) > (/= (process-exit-status proc) 0)) Thank you, I was too lazy to implement such kind of check myself. Certainly this variant is better. I hope, I have addressed other your comments in the updated patch. --------------8A9F5E7AADCBE8693FAE8F3D Content-Type: text/x-patch; charset=UTF-8; name="org-open-file-make-process-v2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="org-open-file-make-process-v2.patch" commit 5eca7764d94dd46b9f9a7792d1b786a3f03b20b6 Author: Max Nikulin Date: Wed Feb 17 16:35:58 2021 +0000 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. diff --git a/lisp/org.el b/lisp/org.el index 4db2dbe04..c58708a5f 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -8768,7 +8768,21 @@ If the file does not exist, throw an error." (save-window-excursion (message "Running %s...done" cmd) - (start-process-shell-command cmd nil cmd) + ;; Handlers such as "gio open" and kde-open5 start viewer in background + ;; and exit immediately. Avoid `start-process' since it assumes + ;; :connection-type 'pty and kills children processes with SIGHUP + ;; when temporary terminal session is finished. + (make-process + :name "org-open-file" :connection-type 'pipe :noquery t + :buffer nil ; use "*Messages*" for debugging + :sentinel (lambda (proc event) + (when (and (memq (process-status proc) '(exit signal)) + (/= (process-exit-status proc) 0)) + (message + "Command %s: %s." + (mapconcat #'identity (process-command proc) " ") + (substring event 0 -1)))) + :command (list shell-file-name shell-command-switch cmd)) (and (boundp 'org-wait) (numberp org-wait) (sit-for org-wait)))) ((or (stringp cmd) (eq cmd 'emacs)) --------------8A9F5E7AADCBE8693FAE8F3D-- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 21 11:01:11 2021 Received: (at 44824-done) by debbugs.gnu.org; 21 Mar 2021 15:01:11 +0000 Received: from localhost ([127.0.0.1]:55262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNzZn-0003US-2f for submit@debbugs.gnu.org; Sun, 21 Mar 2021 11:01:11 -0400 Received: from out0.migadu.com ([94.23.1.103]:50270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNzZj-0003UI-KL for 44824-done@debbugs.gnu.org; Sun, 21 Mar 2021 11:01:10 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1616338865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1gyR6y7UwF3La0iaTvsRua2fQ4MsJi2wqszlQ/9OZMc=; b=Xfw2H781PfJki2CB1L61X3vjnnRT1Lfgp1HC3mxx3KiF7BeOkV1KX/vVbcVgSWRMzGokWZ 8injAAutK1a4vER50DBUwXRSaiFk8e+czJw1yR6UclfWq+6Zz4a02ThCATfTw/B2KLk93p zAAk+p5Hzm/70v6t8DV7rW93fMtwOhoRbkBoQ+On20+SbNl29w3M0taAdI/oyWdWHy107q LBGessAvsafRCJ+OxhXjNSkd3lAb5bdCCijjPiK+BgZKCWNkQC8LNs6dtuZfN7QJel/Puv HMzP53G2sIrFosrVL+s4Gp0qIRoXzrBmUNVzEJY42E0ggrZz5tLlTOsFPhGuIw== From: Kyle Meyer To: Maxim Nikulin Subject: Re: bug#44824: [PATCH] org.el: Avoid xdg-open silent failure In-Reply-To: <214cd672-a9c6-b7d4-754e-df2e552f2b2e@gmail.com> References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf__8661.17158891342$1612110869$gmane$org@gnu.org> <87zgyzls41.fsf@kyleam.com> <214cd672-a9c6-b7d4-754e-df2e552f2b2e@gmail.com> Date: Sun, 21 Mar 2021 11:01:03 -0400 Message-ID: <87k0q0v9e8.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44824-done Cc: Eli Zaretskii , Geraldo Biotti , 44824-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Maxim Nikulin writes: > I hope, I have addressed other your comments in the updated patch. > > commit 5eca7764d94dd46b9f9a7792d1b786a3f03b20b6 > Author: Max Nikulin > Date: Wed Feb 17 16:35:58 2021 +0000 > > org.el: Avoid xdg-open silent failure Thanks. A note for future patches: your patch isn't in a format that's ready to be consumed by git-am. git-format-patch can help you here. Applied to the Org repo (5db61eb0f), adding a TINYCHANGE cookie to the commit message. Please consider completing the copyright paperwork for future patches (see ). If I understand correctly, this bug can be closed, but please reopen if I'm mistaken. From unknown Tue Jun 17 20:12:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 19 Apr 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator