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 AAifCD/iEmCTGwAA0tVLHw (envelope-from ) for ; Thu, 28 Jan 2021 16:11:43 +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 aK8+BD/iEmD0YwAAB5/wlQ (envelope-from ) for ; Thu, 28 Jan 2021 16:11:43 +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 829559402A2 for ; Thu, 28 Jan 2021 16:11:42 +0000 (UTC) Received: from localhost ([::1]:47460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l59tV-0004KC-FM for larch@yhetil.org; Thu, 28 Jan 2021 11:11:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l59ss-0004Jn-Ih; Thu, 28 Jan 2021 11:11:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38070) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l59ss-0008SB-Ac; Thu, 28 Jan 2021 11:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l59ss-0003E0-5T; Thu, 28 Jan 2021 11:11: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: Thu, 28 Jan 2021 16:11: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.161185023512358 (code B ref 44824); Thu, 28 Jan 2021 16:11:02 +0000 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 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-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: -1.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=RDMGatqN; 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: 829559402A2 X-Spam-Score: -1.25 X-Migadu-Scanner: scn1.migadu.com X-TUID: R1DCs8/i2+HW 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