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 KEQaGuXTFmD3IAAA0tVLHw (envelope-from ) for ; Sun, 31 Jan 2021 15:59:33 +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 +E7zFeXTFmBLFgAA1q6Kng (envelope-from ) for ; Sun, 31 Jan 2021 15:59:33 +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 B2DC894050C for ; Sun, 31 Jan 2021 15:59:32 +0000 (UTC) Received: from localhost ([::1]:49142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6F8N-0008SV-Ld for larch@yhetil.org; Sun, 31 Jan 2021 10:59:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6F7u-0008Rm-1e; Sun, 31 Jan 2021 10:59:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6F7t-0001pv-Py; Sun, 31 Jan 2021 10:59:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6F7t-00077t-P1; Sun, 31 Jan 2021 10:59: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: Maxim Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Sun, 31 Jan 2021 15:59: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 Received: via spool by 44824-submit@debbugs.gnu.org id=B44824.161210869127318 (code B ref 44824); Sun, 31 Jan 2021 15:59:01 +0000 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 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-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: 44824@debbugs.gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.74 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=UiTbjheg; 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: B2DC894050C X-Spam-Score: 0.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6vPUVDgrj7sv 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.