From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oOdMF+Xd3GJtSAAAbAwnHQ (envelope-from ) for ; Sun, 24 Jul 2022 07:51:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oBxfFuXd3GIkhQEAG6o9tA (envelope-from ) for ; Sun, 24 Jul 2022 07:51:33 +0200 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 E2B551A21D for ; Sun, 24 Jul 2022 07:51:32 +0200 (CEST) Received: from localhost ([::1]:46558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFUWZ-0002p6-Hp for larch@yhetil.org; Sun, 24 Jul 2022 01:51:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFUVh-0002oR-1R for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 01:50:37 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:42926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFUVf-0004iR-Dt for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 01:50:36 -0400 Received: by mail-pg1-x536.google.com with SMTP id q22so2488614pgt.9 for ; Sat, 23 Jul 2022 22:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=oBuvu983TwLv+rEJSNmycwIa4BIp6EOkVS/NpHQy3hs=; b=qONgtDSKURbRs11x0qYSnp9vaSPQCape9GiJjvLzV5LxPcfcLUOLDxet83UUBGGLR/ RQQaq8c+fsTPNAs4X5qDqqQ9dB8VdIlYTtLdldSUaCWlVsly6cuveA+OnSWArhfN1wiO +2I7B+v1AAdP4C9v4FJRJoXTYizvGqYSXYjBBnPHCQVxTzqzpptg6NPh+AO+rvQ3aQtP bhjJXtCXEE366gXIhR0wSSON0NnaD2v/tR5VzQUjvmnjwI1VItQxcJ3ypcfmnHHKP1FR m0OkOWLnO26vf7Lh2UlrI0LYtV8OIM5gw6C1pU5HTRVnAwn+EqhNf6I7kIHp126x4JeG EpuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=oBuvu983TwLv+rEJSNmycwIa4BIp6EOkVS/NpHQy3hs=; b=dkjvbXTDCz3uBsqnI2bMAP5Q7F+RGFnzTMzN2Fp0mMxCYWmmZO+/DBvdjJzPe4+cS8 Hi+0m3ay2CqV5hQauRWdl57JJi4+NRhmML40VULb+UpJAg6zh4cIwoMHrfsY/8VXCcgZ YAAVC6JHQsU22VtOw0pLJX7HQkBktPxrNpifMwJwcKd7w8XGhuQ1lVZBqcu90XDVz7eq MiF1GQkOM149cizW7CPe33oHzj/56QIAAQsDj51sH9LrzBiHYgGwgyNs2zh7/Z4prLWd 0M1yo8PaTtS32SSGyBwKxNHqLUiKIkgwB0dReY0k/fC5baXlLecFdF6ZeH+W5Usny0HD LMqw== X-Gm-Message-State: AJIora+oLCMOBpPkBeTVRTz6jOO+lMTI0QCefE0cxxe+VSpLivCmZ3k+ dZzGoL/DmtWlNvGZ1pAcpOc= X-Google-Smtp-Source: AGRyM1va+TVjbbfVckJcsGYNIGEztWvNVWfynUJNuIGr9jjOw3e5yVLFZjOkAoNpIXHbmwqxlmdsOA== X-Received: by 2002:a63:f14c:0:b0:41a:b83d:a636 with SMTP id o12-20020a63f14c000000b0041ab83da636mr4755891pgk.361.1658641831611; Sat, 23 Jul 2022 22:50:31 -0700 (PDT) Received: from localhost ([1.83.155.1]) by smtp.gmail.com with ESMTPSA id v129-20020a626187000000b0052badc0f3d7sm6880965pfb.50.2022.07.23.22.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 22:50:30 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] org.el: Use `call-process' to launch external viewers (was: Re: [BUG] org-open-file immediately termininates when calling xdg-open that calls emacsclient) In-Reply-To: References: <87ee0mp4hb.fsf@localhost> <87bkvke5iq.fsf@localhost> <87czfzwl8k.fsf@localhost> <87bkvj57ip.fsf@localhost> Date: Sun, 24 Jul 2022 13:51:28 +0800 Message-ID: <87k083njmn.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=yantar92@gmail.com; helo=mail-pg1-x536.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658641893; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=oBuvu983TwLv+rEJSNmycwIa4BIp6EOkVS/NpHQy3hs=; b=Ps7knFf0PtfXYdR7wnXZVEEomOeYkELg/Q887VGQQjy+PbeYVMtvEFQPAt1m6MCK3oeCS8 M+piwsL6Pg1GVToEeylGofXu/cNOa1NGb1g36G48jir/d1nTRQ2EUISHEJEWCIjYJCtBSf DTzuCk8jgJOjFHu7XHRCBAhfj0acW3hZ1PKdtVq0+d1f9sdusHR3s56bQFYlGILCaqPWEk 8zGnRQ+YpfAcGhjY3Z5hFXDwsMt053p+svJL7ru9mmocENpgRNLI5RP0xgsJn8BbVAc+jf 3tBHB80TOblJ+JW743M1L4MVudQpBQjL+rQNgI2ROPRp5NLr7qQuEfO2PDOQaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658641893; a=rsa-sha256; cv=none; b=Pc9bjDzRemrXUPRLZYMDm5oebeHJQkDebt525+eRj3/S7nBti3HXzz2/IdeXgFxdx5Wqtd Vqrf2nRzy/Do5wNxUk4666uYmYxrHP38czRHRoL5qnnhMbqh5adIYY1Ue/y82KFxAnaAVs 8DPNQGXtfNeUNoajCJj6z4QTHDQ+S/I6e1Vpl5QRr8HjSeiW+6r+Qwv45rxhOXC/u4RDno iyoNlcSOzPxQG8KlLu8xz8XQu+fMjl7/2gd/p85h8kCaro5fcw4PNtya8vAfgd/zpn7LZR PyIVzzJH8Huu4wI1x2+tTBgqjyK6QzG4l4UGf7A3Rax4cOLgmYaxILnyZtaWDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qONgtDSK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qONgtDSK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E2B551A21D X-Spam-Score: -3.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: B3v/xf4JWvhW Max Nikulin writes: >> I have reported this to Emacs. The more precise steps are in >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55672 > > As expected, nobody wishes to dig into obscure X11 issue. > > You may try the attached patch. I do not consider it as unambiguous > improvement since almost all errors are swallowed due to requirement to > interpret viewer command using shell. The same approach settled on > `browse-url' after several fixes, but there at least wrong executable > name may be reported. For reference, I am no longer able to reproduce the problem using the provided recipe. Since the report, I have upgraded my system libraries and Emacs (to the latest commit on master). Now, I am not really sure if this patch is going to be an improvement. Unless you have objections, I am marking the patch cancelled - I no longer see any clear benefit of the patch. Cancelled. Best, Ihor