From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gBs2M1aMFWAcMQAA0tVLHw (envelope-from ) for ; Sat, 30 Jan 2021 16:41:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GO/2LlaMFWAvUgAAB5/wlQ (envelope-from ) for ; Sat, 30 Jan 2021 16:41:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 431979402C2 for ; Sat, 30 Jan 2021 16:41:58 +0000 (UTC) Received: from localhost ([::1]:39168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5tJt-0005BV-5m for larch@yhetil.org; Sat, 30 Jan 2021 11:41:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5tI2-00057y-8l; Sat, 30 Jan 2021 11:40:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44166) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5tI2-0001vE-19; Sat, 30 Jan 2021 11:40:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5tI1-0006rf-U0; Sat, 30 Jan 2021 11:40:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44824: 27.1; Org export as pdf and open file does not open it Resent-From: "gbiotti@gmail.com" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Sat, 30 Jan 2021 16:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44824 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: moreinfo To: Maxim Nikulin , 44824@debbugs.gnu.org Received: via spool by 44824-submit@debbugs.gnu.org id=B44824.161202475826330 (code B ref 44824); Sat, 30 Jan 2021 16:40:01 +0000 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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=iNBGzcvU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 431979402C2 X-Spam-Score: -0.25 X-Migadu-Scanner: scn1.migadu.com X-TUID: I2KZFe6tCU2/ 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--