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 nevqK++9B2D/TgAA0tVLHw (envelope-from ) for ; Wed, 20 Jan 2021 05:21:51 +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 6M6AJ++9B2DoHQAAB5/wlQ (envelope-from ) for ; Wed, 20 Jan 2021 05:21:51 +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 0FDF9940482 for ; Wed, 20 Jan 2021 05:21:50 +0000 (UTC) Received: from localhost ([::1]:50026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l25wC-0006lq-9s for larch@yhetil.org; Wed, 20 Jan 2021 00:21:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l25vY-0006lN-2K for emacs-orgmode@gnu.org; Wed, 20 Jan 2021 00:21:08 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:40336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l25vV-0001yQ-01 for emacs-orgmode@gnu.org; Wed, 20 Jan 2021 00:21:07 -0500 Received: by mail-wm1-x331.google.com with SMTP id c127so1662846wmf.5 for ; Tue, 19 Jan 2021 21:21:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:reply-to:accept-language:content-language :mime-version; bh=N7SYg2ESJCRaGN6isczafZZXHDP2gH2oZImyntzpjFQ=; b=X6T6THXU6Pw3wtNxfeKoOLfY5sYKtyWGwRthFeMhOx6JXMqNQfIxLpLbj8nKJ99kRh Yiwhh3ks7H6tKYVim7Lm0sEVjF87hCqoKZv0S5ktAmy5GDc9unVQ0Kla4bj9cHqfgPTr w3ksVEckDNkTl0AM/deGxbYI7Q6edwpAvGASTsa+1MHp9kwF8mRdtw8/lFyrgiLAOJzy kQQRR5paX5bFrN4p2YlavN0HIksTm3doeZiHKuSEfKgEKdfePJMxJbMjLIwnGOXjHOdg Q2s+bfqjCnYxIOETieJ3Gq70CeKQGOqEMwSotQUT2Bd2y/RPAbm0RW9Ch2SfnUbRizAv lUQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:thread-topic:thread-index :date:message-id:references:in-reply-to:reply-to:accept-language :content-language:mime-version; bh=N7SYg2ESJCRaGN6isczafZZXHDP2gH2oZImyntzpjFQ=; b=pnrko0qw70QaHBYBiW/RcSaik0QRufK2Qvpvzd/F1Dp681C8iyLuQU8Ksti6nhBizA 6mM+TJYyNXd1HZouXv/ej0GhDosp7RD0SJ/YAzoJYN42zm3kSw0nusuhDsjjuwqNfSrK i8E1ONyBwY/B2JVyZn3SSXutV0uNj7zYnwHRT+FHKuueJUlQoipASDiLFsmhdFuysSyE 2KOUXnJynxotD2y9MFFWvZY3DDK+YGFf9UJ+sl8i1co6sFqgPldicYpr7rcvBP6IgdTu Pz7NoLijC1e3EzTpWLIhLBn+iqyEUaHNt7hBwK1YMorRy+UTIgoWhtYpRK4BHs7oZPVk EPqg== X-Gm-Message-State: AOAM530KLwl7XVkuWtoDb2MCKDA8Q6XgcrRzlQlhh4/xh4ApEhX47cvU NYnAKUZ5MTg3WLFNZkSvOg== X-Google-Smtp-Source: ABdhPJzfOzIFGKupGq7lrUJ9y8S2NqSUASaAvrxgPaTPgBNoSpddtVKDH0Pp6YF0/CYgUxKTZfo2gA== X-Received: by 2002:a1c:a957:: with SMTP id s84mr2486250wme.166.1611120062909; Tue, 19 Jan 2021 21:21:02 -0800 (PST) Received: from PAXPR08MB6640.eurprd08.prod.outlook.com ([2603:1026:c0a:1::5]) by smtp.gmail.com with ESMTPSA id h13sm1618249wrm.28.2021.01.19.21.21.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2021 21:21:01 -0800 (PST) Received: from dark (183.246.145.54) by HKAPR03CA0009.apcprd03.prod.outlook.com (2603:1096:203:c8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.6 via Frontend Transport; Wed, 20 Jan 2021 03:21:47 +0000 From: Christopher Miles To: Maxim Nikulin Subject: Re: [BUG] [C-u C-u C-c C-o] open link with external program invalid to open file Thread-Topic: [BUG] [C-u C-u C-c C-o] open link with external program invalid to open file Thread-Index: AQHW1caRExHu/lvlJkaB4JwUrG5MzKouXvEAgAD+vwCAAKniAA== X-MS-Exchange-MessageSentRepresentingType: 1 Date: Wed, 20 Jan 2021 03:21:50 +0000 Message-ID: References: <87ftazz9q0.fsf@gmail.com> <87lfho7ja2.fsf@gnu.org> In-Reply-To: Accept-Language: zh-TW, en-US Content-Language: en-US X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 06 X-MS-Exchange-Organization-AuthSource: PAXPR08MB6640.eurprd08.prod.outlook.com X-MS-Has-Attach: yes X-MS-Exchange-Organization-Network-Message-Id: 1f6c3bef-9c5c-4943-2497-08d8bcf285ff X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 x-clientproxiedby: HKAPR03CA0009.apcprd03.prod.outlook.com (2603:1096:203:c8::14) To PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=numbchild@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 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_FROM=0.001, GAPPY_SUBJECT=0.1, PDS_BAD_THREAD_QP_64=0.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Christopher Miles Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.65 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=X6T6THXU; dmarc=pass (policy=none) header.from=gmail.com; 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: 0FDF9940482 X-Spam-Score: -2.65 X-Migadu-Scanner: scn1.migadu.com X-TUID: Yfjzz9atUA7q --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Maxim Nikulin writes: > On 19/01/2021 08:53, Christopher Miles wrote: >>=20 >> For this problem, do you have any workable solution patch? > > Maybe for a while it is better to avoid xdg-open or other handlers that=20 > launch actual viewers in background. E.g. to replace xdg-open with=20 > actual handlers in mailcap. > > I attach a draft patch that just demonstrates my intention to use=20 > make-process. It intentionally does not use shell to run the command and= =20 > such change could be breaking for some part of users. I have not tested=20 > if regexp substitutions for org-file-apps entries are not broken. > > In kubuntu-18.04 I do not have any xdg-open entries in the system=20 > mailcap file. Even if I add such line to the user's file, I could not=20 > reproduce the problem with any of the real handler configured for the=20 > image/png type and launched by xdg-open: geeqie, gwenview, feh. I have=20 > no idea concerning the reason: older xdg-open version, other code=20 > working in xdg-open for kde desktop, or limited resources allocated to=20 > qemu virtual machine with ubuntu-20.04 where I can reproduce the problem. Thanks for your working. I will modify my mailcap config temporary until Org Mode fix this issue. You're right, this change might break some behavior of= some users. I don't understand Emacs sub-process mechanism. Can't help on this problem. But I'm interested in this. I will take some time to study in. Any= way, thanks for your work. Regards, =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmAHocUACgkQG13xyVro msOgOwf+K4h5ZzwzCvgYhHOC+mQ2cZX0V4Da9O5FiwIU1Ez6Wx2ojuwgvhjszWvF RB4LVBM+9BVTlG+SQ+HOX3io/Wo/4WnXFqs1cmmlopcz7d5U9aKeQ2ddlW4yI6c1 Xi1xbmxhtrN9ZIJE1Vtz6N83XsoWUfFhgcohCDZuzR2RT5bDtsDqOyQSLhb2gnRP aB/Axwl3zK83IrOsW/xPllkumN/pS562xEZclfORPbHgkk32LARdsDBG980na4e9 cLID5jLsb6fX+S9cHhh84O9COPvwsSzIE4SLtfZHZ7Jal7GbCqSzMQRZfyk0yyog 39C3DUi6M3+dbvWHCTbtNLB8xBElpw== =f49/ -----END PGP SIGNATURE----- --=-=-=--