From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MJlGHeZgFWBdIgAA0tVLHw (envelope-from ) for ; Sat, 30 Jan 2021 13:36:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KMcfGeZgFWAkUAAA1q6Kng (envelope-from ) for ; Sat, 30 Jan 2021 13:36:38 +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 F065D9403E6 for ; Sat, 30 Jan 2021 13:36:37 +0000 (UTC) Received: from localhost ([::1]:56374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5qQW-0006Ui-SM for larch@yhetil.org; Sat, 30 Jan 2021 08:36:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5qN5-0004Wj-DB; Sat, 30 Jan 2021 08:33:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5qN4-00054q-8L; Sat, 30 Jan 2021 08:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5qN4-0003nm-4F; Sat, 30 Jan 2021 08:33:02 -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: Maxim Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Sat, 30 Jan 2021 13:33:02 +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: 44824@debbugs.gnu.org Received: via spool by 44824-submit@debbugs.gnu.org id=B44824.161201352914556 (code B ref 44824); Sat, 30 Jan 2021 13:33:02 +0000 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 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-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: , Cc: gbiotti@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=T6SAmg7v; 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: F065D9403E6 X-Spam-Score: -1.25 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6cpJctt302fV 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.