From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vasilij Schneidermann Newsgroups: gmane.emacs.bugs Subject: bug#25778: 25.1; [PATCH] Drastically simplify xdg-open check Date: Sat, 18 Feb 2017 09:50:25 +0100 Message-ID: <20170218085025.GA607@odonien.localdomain> References: <83shncr7bh.fsf@gnu.org> <20170217185514.GA599@odonien.localdomain> <83r32wq6at.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: blaine.gmane.org 1487407876 1418 195.159.176.226 (18 Feb 2017 08:51:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2017 08:51:16 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: 25778@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 18 09:51:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf0jW-0007kb-RQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2017 09:51:10 +0100 Original-Received: from localhost ([::1]:57609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cf0jX-0007DL-DO for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2017 03:51:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cf0jR-0007D4-E5 for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 03:51:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cf0jO-0004hd-C7 for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 03:51:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45930) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cf0jO-0004hV-8m for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 03:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cf0jN-0002sm-VC for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 03:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vasilij Schneidermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Feb 2017 08:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25778 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25778-submit@debbugs.gnu.org id=B25778.148740783411049 (code B ref 25778); Sat, 18 Feb 2017 08:51:01 +0000 Original-Received: (at 25778) by debbugs.gnu.org; 18 Feb 2017 08:50:34 +0000 Original-Received: from localhost ([127.0.0.1]:44129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf0iw-0002s8-CO for submit@debbugs.gnu.org; Sat, 18 Feb 2017 03:50:34 -0500 Original-Received: from mail-wm0-f41.google.com ([74.125.82.41]:38389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf0iu-0002ru-Rq for 25778@debbugs.gnu.org; Sat, 18 Feb 2017 03:50:33 -0500 Original-Received: by mail-wm0-f41.google.com with SMTP id r141so23756062wmg.1 for <25778@debbugs.gnu.org>; Sat, 18 Feb 2017 00:50:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BBRa8mFmEODcrn/oM7rkDzm7dG8txVIGN3/PYPJzMso=; b=nh5mYB5kV6eiLVBr03bOFucYZqWCo4ae3EAvNlmB7I2jiiwZkeqPgGC2b1lzHOQCUA TJSwFPoZhyYW2YelxwjrMLgtXA70ydVnLtEbJw2WigZwfFZ+0D6+WLNHb3PmYwtnt77E 2wpEDVTOQ7rDvQvxAmyKjKElczLPu2Jx/zTIVTn6NS7PfO0qdkG4jrlpwzFmbrcEF0Vi 7bTpJOwy3kbXoC8IHbJTvS7fyA3lmwgoFYhWklkdShSj27Y2IOmgVALYOOoZoGU4+bRd URl7wBhE8mqCJlq1/+eZ4d020M9MuMWgcqqWT1jBDqx7uyg4DMJHT+87H/5GmZRXntY0 9Jhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BBRa8mFmEODcrn/oM7rkDzm7dG8txVIGN3/PYPJzMso=; b=gp7/vnMBIJBS79uk7R0YJ+sIunrkTq0WbkwKCLXJq3ifDX82JnrgkMPNWaV2iR6OcE vU5Oeu6FmgJm/9C8ux6RhIEQW0nRq1kzWeP5rg64dpABRIx3ArFO2r0qwyAZ/ksnYbA7 gllpOP013jCbIFemJBPSGBYie5r+mcP7XgYtR8EOy4BZrWnMsWaVILPLIoRxbnNEw1rv 3J8C7eSo0wG+Bfj3NABBjeQp8piEU8zuUtPybFTnrlmQlk3yJjMqnib2aOv5ihUR1icZ 5vfOkLu3qnXH4A31scGmkqewFRF1rkdkz7EAg6SnRzhU+jAHvpeQkYd9CglDDo+RREyN LWBw== X-Gm-Message-State: AMke39mD2D3Q1gMBRXnDLpHvzGS4JgNB4LHwK8P6ssgxqR5p9ttVAF4Jxf2aIrfTFzxvAA== X-Received: by 10.28.228.213 with SMTP id b204mr8330180wmh.59.1487407827100; Sat, 18 Feb 2017 00:50:27 -0800 (PST) Original-Received: from localhost (dslb-084-063-143-045.084.063.pools.vodafone-ip.de. [84.63.143.45]) by smtp.gmail.com with ESMTPSA id g23sm4678397wme.27.2017.02.18.00.50.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 Feb 2017 00:50:26 -0800 (PST) Content-Disposition: inline In-Reply-To: <83r32wq6at.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129482 Archived-At: > In that case, maybe we shouldn't test $DISPLAY at all? Why restrict > this to X if xdg-open is already tested for availability? To quote its man page: "xdg-open is for use inside a desktop session only.". If you attempt using it outside one (like, on the Linux console), M-x browse-url fails silently.