From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxim Nikulin Newsgroups: gmane.emacs.bugs Subject: bug#44824: [PATCH] org.el: Avoid xdg-open silent failure Date: Fri, 19 Feb 2021 19:29:49 +0700 Message-ID: <1a7077ea-c3ad-be6b-6303-f3ed225ec6f8__22781.7344640911$1613745660$gmane$org@gmail.com> 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> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf__8661.17158891342$1612110869$gmane$org@gnu.org> <83a6s15t51.fsf__31631.6350990505$1613659778$gmane$org@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29760"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: 44824@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 19 15:40:56 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lD6xk-0007bU-39 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Feb 2021 15:40:56 +0100 Original-Received: from localhost ([::1]:46860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lD6xi-0005da-Vn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Feb 2021 09:40:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lD4w4-0004aQ-W6; Fri, 19 Feb 2021 07:31:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37325) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lD4w1-0004fP-Q1; Fri, 19 Feb 2021 07:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lD4w1-00078c-Li; Fri, 19 Feb 2021 07:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Maxim Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Fri, 19 Feb 2021 12:31: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 Original-Received: via spool by 44824-submit@debbugs.gnu.org id=B44824.161373780323958 (code B ref 44824); Fri, 19 Feb 2021 12:31:01 +0000 Original-Received: (at 44824) by debbugs.gnu.org; 19 Feb 2021 12:30:03 +0000 Original-Received: from localhost ([127.0.0.1]:48871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD4v5-0006Dy-8f for submit@debbugs.gnu.org; Fri, 19 Feb 2021 07:30:03 -0500 Original-Received: from mail-lj1-f181.google.com ([209.85.208.181]:34163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD4v1-0006C3-5I for 44824@debbugs.gnu.org; Fri, 19 Feb 2021 07:30:01 -0500 Original-Received: by mail-lj1-f181.google.com with SMTP id r23so19427591ljh.1 for <44824@debbugs.gnu.org>; Fri, 19 Feb 2021 04:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:cc:newsgroups:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=LPM9FIRh2y6zukXtNgS74imXzF+tbuetYFMoDR76JLc=; b=KpY7qH8IaYxYtM9JwOEq7emGeF37BUOaRoOR0QDE6yOO6I5BeoLAUrjoQ3SRgPxIbQ k/r2gJr5LVSNidAzAJvezfzp4SH3Bnijz+dy5cO2E20xuht898d03pk/nwhJqrYRBiV8 hg/1knyBChlaH3pV3mkCXQ3bVbwZjgzdDeA+VDXM1poVsAJBGyaImhsLyCBWJgcIF7GU HtnqiAlDxCQbf/X6PLk8ihD00KiVUDKDD8gGlNFxMWFsRmra3j+gGzyeeP752pOfhDRT ljZPkW/jE6EN1a2yHOni4ljyi2/wzW41WQ05G5yWGWNCUkwf0AHXL3kauJRB0U8DqUtw tvlA== 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:newsgroups:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=LPM9FIRh2y6zukXtNgS74imXzF+tbuetYFMoDR76JLc=; b=gQTS01PVvumN/Yms4ynzksudT+XNRvL81wDQdowpU/13uHPUFyhZfa1nUJG+ZuNaxi m8UOFL/3VYg7PRJ0Af04JTtsQjtd1hmTRJDxRkfIZy/JsXLLcCeHPr68l0kXaowgRcKD W+BlnxBW5rV8xH9ryW3JhWqinOlWbhG2CQVIO8o4xMJRhG0sQLVALSr6x8ndPZxgBo3a K/tn25KBXt32PZbeitnI2k7F/0xK6/qQkFWJoEvLKevdxWHl1g0RmO2bE0QpOc0/e/I6 WJ8BvIKJyXSN+cDNVUe75Ga5vW4c2fbGj1SWg/cNhCUXUzjqLd4j+QE2hPh6GG0r/hPL 9AbA== X-Gm-Message-State: AOAM530t3m7sWo1ShIYoXDLMPpWF1+OWml+rGBRaIzbzToUTYLbDmCBa o4B5QUZbFQLSTJ6eHgwnYUd117o7NpI= X-Google-Smtp-Source: ABdhPJy23lffMiH8AvzwxEnPLybNhcoGH2wvHIgcTvQjwJUohK5pa6YcNMQ2FKA25CZo0O0sTfiLfQ== X-Received: by 2002:a2e:a368:: with SMTP id i8mr5219984ljn.455.1613737792804; Fri, 19 Feb 2021 04:29:52 -0800 (PST) Original-Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id a8sm942598ljp.21.2021.02.19.04.29.51 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Feb 2021 04:29:52 -0800 (PST) X-Google-Original-From: Maxim Nikulin Original-Newsgroups: gmane.emacs.orgmode In-Reply-To: <83a6s15t51.fsf__31631.6350990505$1613659778$gmane$org@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 19 Feb 2021 09:40:40 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200342 Archived-At: On 18/02/2021 21:48, Eli Zaretskii wrote: >> From: Maxim Nikulin >> Date: Thu, 18 Feb 2021 19:56:03 +0700 >> >> I could not estimate effect of such change on windows, so pipe process >> is used only on linux. I am unsure concerning mac however. > > On Windows Emacs always uses pipes, because we don't have PTYs there. > And there's no xdg-open on MS-Windows anyway, so it's a moot point. Should I consider your response as a suggestion to remove the `if' related to `system-type'? If I remember correctly, on windows it is possible to communicate with a process through stdin and stdout only if the application is compiled as a *console* one. That is why it is unclear for me, which component handles console or GUI distinction when process is specified as pipe in lisp code, and whether all arguments of `make-process', that I have used, are suitable on windows. "start file.pdf" executed in cmd.exe launches an application that does not block command prompt. In this sense it similar to background processes launched by kde-open5 or "gio open". However I am unaware if there is something similar to process groups on windows that leads to termination of all group members when leader process finishes.