From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IOBYECnw+l/9KAAA0tVLHw (envelope-from ) for ; Sun, 10 Jan 2021 12:16:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iIYNDCnw+l/VdwAAbx9fmQ (envelope-from ) for ; Sun, 10 Jan 2021 12:16:41 +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 926E6940463 for ; Sun, 10 Jan 2021 12:16:40 +0000 (UTC) Received: from localhost ([::1]:59542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyZeA-0007lN-Oa for larch@yhetil.org; Sun, 10 Jan 2021 07:16:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyZcl-0007l3-3T for emacs-orgmode@gnu.org; Sun, 10 Jan 2021 07:15:11 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:34630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyZci-0003vU-LP for emacs-orgmode@gnu.org; Sun, 10 Jan 2021 07:15:10 -0500 Received: by mail-wm1-x32a.google.com with SMTP id g25so9337362wmh.1 for ; Sun, 10 Jan 2021 04:15:08 -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=KSc1pyFDBqg+uOVSyoadOfKig3jkG7ZuDeOobzwenyk=; b=tLuipojU3f132zOCftupu3s3Me9iQKlaiLcc2FHKU3TBK5b9dMdMCxP3Lrrif05B1L RyIS0cLBDcNalmMLYSLUq/5oxDWGyJPu4EpjXYUe2L21tJjRExWWpqW0US6TMWGudYpQ R4zxYER/h/9WOzI6oqAaKNrrgA4PNbz8stglffE8Z/P7/zLsWvhEv9BqgQYQonXmRJcS 44kKktbhjzF03JveCnW2CWlRcvYA9thri+fxFVJTU9Gh4QKA4rjPRYlDcK1LYPeToCXf eGGttuUg1oEoVe4W1bzDlNWQR/OFDSStxTljG5dGUode0cq6qpQgCSDB2VosXoHWOYF6 1LPA== 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=KSc1pyFDBqg+uOVSyoadOfKig3jkG7ZuDeOobzwenyk=; b=j3U7Qp97WM5swNidVtAwEnuNQQVkToCruTPlGK7Mp7tzWF3V9uSbRPysL3XGIu2Gzd o08zkBWclISNiaFHbpF1SqxImqrjAcv0++UjmI9IS1nrsYJGQWSSWcy7+qTF4BCcsJH7 4M4+7LlMTZu77PnsUCX4+z3Be/6j1vxX7phF9GWiJtUh0PKi4tyb46QcWTQRpFifFUaF jD1lODfz+CaOyTnucjp7NQ3CBoQZYO5CvbXmtTp83OSQbOB7ZPCqXZHFp/D4Kw/8geCc 3/rTxsrCVH6JWXyEkWyjLh9HsYFyZ3GXVxKdbdHSY4amFNM8Q70gVOvBUEqZtbRWh0g9 9O3A== X-Gm-Message-State: AOAM532Za6n4ulSaLTBBeNSw5zy0y3RhLcEM+LPZY7Iloe1p8Y8+LDO3 GQLmC3BQeue6jGTdbICe0g== X-Google-Smtp-Source: ABdhPJzGafE8P2PUGPxR3Ra6Zk4Cuy+pbtm4JlR/woH/NllfmVlCB5rLdhl4k+IvJAZR0MRks8FQtg== X-Received: by 2002:a1c:2483:: with SMTP id k125mr10703597wmk.67.1610280906506; Sun, 10 Jan 2021 04:15:06 -0800 (PST) Received: from VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM ([2603:1026:300:5a::5]) by smtp.gmail.com with ESMTPSA id q1sm20457407wrj.8.2021.01.10.04.15.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jan 2021 04:15:05 -0800 (PST) Received: from dark (183.246.146.135) by HK0PR03CA0103.apcprd03.prod.outlook.com (2603:1096:203:b0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6 via Frontend Transport; Sun, 10 Jan 2021 12:13:44 +0000 From: Christopher Miles To: Nicolas Goaziou Subject: Re: [BUG] [C-u C-u C-c C-o] open link with external program auto exited before child process open file Thread-Topic: [BUG] [C-u C-u C-c C-o] open link with external program auto exited before child process open file Thread-Index: AQHW50oLkz2ASO5+6Uu5UGPaI78iRw== X-MS-Exchange-MessageSentRepresentingType: 1 Date: Sun, 10 Jan 2021 12:13:46 +0000 Message-ID: References: <87ftazz9q0.fsf@gmail.com> <87a717ggsr.fsf@nicolasgoaziou.fr> <87sg799gnx.fsf@numbchild> In-Reply-To: <87sg799gnx.fsf@numbchild> 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: VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM X-MS-Has-Attach: yes X-MS-Exchange-Organization-Network-Message-Id: ab1417c1-3c0c-45af-18ea-08d8b5612dda X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 x-clientproxiedby: HK0PR03CA0103.apcprd03.prod.outlook.com (2603:1096:203:b0::19) To VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:69::18) 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::32a; envelope-from=numbchild@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.35 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=tLuipojU; 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: 926E6940463 X-Spam-Score: -3.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: +F74vbKfU7uV --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I tested with following code: #+begin_src emacs-lisp (let ((cmd (format "%s %s" "xdg-open" (shell-quote-argument (expand-file-name "~/Downloads/=E4=BC=A6=E6=95=A6=E5=BA=95=E5=B1=82=E7=A4=BE=E4= =BC=9A 1=EF=BC=8C2=E7=AB=A0.doc"))))) (start-process-shell-command cmd "*org-open-file*" cmd)) (start-process "org-open-file" " *org-open-file*" "xdg-open" (expand-file-name "~/Downloads/=E4=BC=A6=E6=95=A6=E5=BA=95= =E5=B1=82=E7=A4=BE=E4=BC=9A 1=EF=BC=8C2=E7=AB=A0.doc")) #+end_src Both has same problem, xdg-open exited automatically and before really open= file. So maybe I should ask question in Emacs-help mailing list? Because this pro= blem seems on ~start-process~ / ~start-process-shell-command~. Christopher M. Miles writes: > I found exactly same problem and some answer on this question: > > https://askubuntu.com/questions/646631/emacs-doesnot-work-with-xdg-open > > But I hope Org Mode can provide solution by default. Based on the descrip= tion in > answers. Is there something Org Mode can do to get around this problem? > > Nicolas Goaziou writes: > >> Hello, >> >> stardiviner writes: >> >>> When I press =3D[C-u C-u C-c C-o]=3D to open an image file link with sy= stem external >>> program. It can't open the image file. >> >> Is it really an Org bug? I.e., is your mailcap file properly set up? >> >> If you think this is really an Org bug, could you provide an ECM, >> including your .mailcap? >> >> 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----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl/673AACgkQG13xyVro msO8QQf+IpN+AC845cPY/q10F5TbPRIVTJq1p7OU3ZQkA4dYYpUBYz8rvNK2KM8V lEm6nHzLsQVxIe7vj4T3XB4yy5DqMN/5IKeavYqg3awjKRYSp7OX2A7PMKS/G7gE MIBcOZ1iIOEUP0QOOZC28ypJHq2eOn2ZOQow61Bm2actdhjlkSmbXc7SKqrXwaDH /Aq8RCU/BBgyqI9bzMZeorU63Wl5+qXsGMJpQmaIMKGPpt1Au0q3znpE8hjvtK1I AZnepnz8WkFQanOYDsG5/Fe33YGZ9qUTq3rjkTwtyRcM8T238qv2s8vwTe4gaG1p JlQp9spRVB3PbtwftZusq5MCMLv1jA== =+2Js -----END PGP SIGNATURE----- --=-=-=--