From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 07 11:43:25 2014 Received: (at submit) by debbugs.gnu.org; 7 Nov 2014 16:43:25 +0000 Received: from localhost ([127.0.0.1]:53075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmmdA-0001Qx-Rt for submit@debbugs.gnu.org; Fri, 07 Nov 2014 11:43:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56016) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmhNJ-0008I2-IP for submit@debbugs.gnu.org; Fri, 07 Nov 2014 06:06:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmhNC-0004aB-1p for submit@debbugs.gnu.org; Fri, 07 Nov 2014 06:06:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAD_ENC_HEADER,BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmhNB-0004Zq-VP for submit@debbugs.gnu.org; Fri, 07 Nov 2014 06:06:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmhN6-0002FG-CH for bug-gnu-emacs@gnu.org; Fri, 07 Nov 2014 06:06:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmhMz-0004TC-PZ for bug-gnu-emacs@gnu.org; Fri, 07 Nov 2014 06:06:28 -0500 Received: from srv4.ns-domain-hosting.de ([178.63.89.203]:34060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmhMz-0004SC-J0; Fri, 07 Nov 2014 06:06:21 -0500 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from bertrandrussell.Speedport_W_723V_1_36_000 (p548BE8C7.dip0.t-ipconnect.de [84.139.232.199]) by srv4.ns-domain-hosting.de (Postfix) with ESMTPSA id 4CF6518642C; Fri, 7 Nov 2014 12:06:20 +0100 (CET) Date: Fri, 07 Nov 2014 12:04:52 +0100 Message-Id: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> From: "Florian v. Savigny" To: bug-gnu-emacs@gnu.org Subject: =?iso-8859-1?q?Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 07 Nov 2014 11:43:22 -0500 Cc: Denis Howe , emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Dear maintainers/authors, browse-url-can-use-xdg-open returns t only if emacs is running under one = of the desktop environments, i.e. Gnome, KDE, Xfce4 or LXDE. I do not know the deeper reasons for this, but from experience, I can con= firm that this running under a desktop environment may be sufficient, but= is not necessary: My emacs is running under fvwm, and xdg-open works fin= e. (You have to know how to configure it, but that is no dark magic eithe= r; I do it via ~/.local/share/applications/mimeapps.list.) My guess is that it would be sufficient to check for the existence of the= xdg-open binary. The condition of one of the desktop environments being = run is somewhat annoying, because when not fulfilled, it causes browse-ur= l-default-browser, which is often employed to open a URL, to default to m= ozilla (or whatever follows in its hardcoded list), which may not be exac= tly what you want. Effectively, it makes it impossible to specify your fa= vourite browser without some kludgy hack. I have included some of the information produced by M-x report-emacs-bug,= but since I am fairly certain that most of it is irrelevant, I have left= it out: In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.3) of 2014-10-21 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.1160100= 0 Configured using: `configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-strong --param=3Dssp-buffer-size=3D4' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: de_DE.ISO-8859-1 locale-coding-system: iso-latin-1-unix Best regards, Florian v. Savigny From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 08 12:16:04 2014 Received: (at control) by debbugs.gnu.org; 8 Nov 2014 17:16:04 +0000 Received: from localhost ([127.0.0.1]:53875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xn9cK-0007A1-8T for submit@debbugs.gnu.org; Sat, 08 Nov 2014 12:16:04 -0500 Received: from mailfe01.swip.net ([212.247.154.1]:38863 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xn9cI-00077U-Oa for control@debbugs.gnu.org; Sat, 08 Nov 2014 12:16:03 -0500 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 542139996 for control@debbugs.gnu.org; Sat, 08 Nov 2014 18:16:01 +0100 From: "Jan D." Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: 18986 Message-Id: <9CC6B6AD-81E6-48AB-9D8D-2A38AE7CE5BE@swipnet.se> Date: Sat, 8 Nov 2014 18:15:58 +0100 To: control@debbugs.gnu.org Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) X-Mailer: Apple Mail (2.1990.1) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) tags 18986 wontfix notabug From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 08 12:19:45 2014 Received: (at 18986-done) by debbugs.gnu.org; 8 Nov 2014 17:19:45 +0000 Received: from localhost ([127.0.0.1]:53883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xn9fs-0007SK-8f for submit@debbugs.gnu.org; Sat, 08 Nov 2014 12:19:44 -0500 Received: from mailfe08.swip.net ([212.247.154.225]:40770 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xn9fo-0007S8-Ko for 18986-done@debbugs.gnu.org; Sat, 08 Nov 2014 12:19:42 -0500 X-T2-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 547801942; Sat, 08 Nov 2014 18:19:38 +0100 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: bug#18986: Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption From: "Jan D." In-Reply-To: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> Date: Sat, 8 Nov 2014 18:19:37 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> To: "Florian v. Savigny" X-Mailer: Apple Mail (2.1990.1) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18986-done Cc: Denis Howe , 18986-done@debbugs.gnu.org, emacs development X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello. It used to be that xdg-open just called the desktop version, i.e. = gnome-open, kde-open and so on. It is not sufficient that xdg-open = exists for the most part. We can't cater for every window manager out = there, we have to go by the majority. If you can make xdg-open work, = then making Emacs use it should be easy. Jan D. > 7 nov 2014 kl. 12:04 skrev Florian v. Savigny : >=20 >=20 >=20 > Dear maintainers/authors, >=20 > browse-url-can-use-xdg-open returns t only if emacs is running under = one of the desktop environments, i.e. Gnome, KDE, Xfce4 or LXDE. >=20 > I do not know the deeper reasons for this, but from experience, I can = confirm that this running under a desktop environment may be sufficient, = but is not necessary: My emacs is running under fvwm, and xdg-open works = fine. (You have to know how to configure it, but that is no dark magic = either; I do it via ~/.local/share/applications/mimeapps.list.) >=20 > My guess is that it would be sufficient to check for the existence of = the xdg-open binary. The condition of one of the desktop environments = being run is somewhat annoying, because when not fulfilled, it causes = browse-url-default-browser, which is often employed to open a URL, to = default to mozilla (or whatever follows in its hardcoded list), which = may not be exactly what you want. Effectively, it makes it impossible to = specify your favourite browser without some kludgy hack. >=20 > I have included some of the information produced by M-x = report-emacs-bug, but since I am fairly certain that most of it is = irrelevant, I have left it out: >=20 >=20 > In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.3) > of 2014-10-21 on bitzer.hoetzel.info > Windowing system distributor `The X.Org Foundation', version = 11.0.11601000 > Configured using: > `configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib > --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft > 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe > -fstack-protector-strong --param=3Dssp-buffer-size=3D4' > CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 > LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro' >=20 > Important settings: > value of $LANG: de_DE.ISO-8859-1 > locale-coding-system: iso-latin-1-unix >=20 >=20 > Best regards, >=20 > Florian v. Savigny >=20 >=20 >=20 >=20 From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 08 13:05:57 2014 Received: (at 18986-done) by debbugs.gnu.org; 8 Nov 2014 18:05:57 +0000 Received: from localhost ([127.0.0.1]:53927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnAOa-0001ZY-S8 for submit@debbugs.gnu.org; Sat, 08 Nov 2014 13:05:57 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:4781) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnAOY-0001ZQ-UO for 18986-done@debbugs.gnu.org; Sat, 08 Nov 2014 13:05:55 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq0IAOatTlRLd+sd/2dsb2JhbABcgw6DYtJRBAICgRwXAQF8hAMBAQMBViMFCws0BwsUGA0kiEsJy3IBAQEBBgEBAQEekQgHhEsFi2SmPIFvgjSBYh+CegEBAQ X-IPAS-Result: Aq0IAOatTlRLd+sd/2dsb2JhbABcgw6DYtJRBAICgRwXAQF8hAMBAQMBViMFCws0BwsUGA0kiEsJy3IBAQEBBgEBAQEekQgHhEsFi2SmPIFvgjSBYh+CegEBAQ X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96299029" Received: from 75-119-235-29.dsl.teksavvy.com (HELO pastel.home) ([75.119.235.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Nov 2014 13:05:54 -0500 Received: by pastel.home (Postfix, from userid 20848) id 2570A8894; Sat, 8 Nov 2014 13:05:54 -0500 (EST) From: Stefan Monnier To: "Jan D." Subject: Re: bug#18986: Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption Message-ID: References: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> Date: Sat, 08 Nov 2014 13:05:54 -0500 In-Reply-To: (Jan D.'s message of "Sat, 8 Nov 2014 18:19:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18986-done Cc: "Florian v. Savigny" , 18986-done@debbugs.gnu.org, Denis Howe , emacs development X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > It used to be that xdg-open just called the desktop version, > i.e. gnome-open, kde-open and so on. It is not sufficient that xdg-open > exists for the most part. We can't cater for every window manager out > there, we have to go by the majority. If you can make xdg-open work, then > making Emacs use it should be easy. The problem was specifically that just having xdg-open installed doesn't guarantee that the user has configured it. The code currently approximate "is it configured" by checking the desktop environment in use. It's clearly a gross hack (or a crude approximation), so if you know a better way, we'd like to hear it. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 15 07:31:44 2014 Received: (at 18986-done) by debbugs.gnu.org; 15 Nov 2014 12:31:45 +0000 Received: from localhost ([127.0.0.1]:33307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpcW0-0002Ju-D7 for submit@debbugs.gnu.org; Sat, 15 Nov 2014 07:31:44 -0500 Received: from srv4.ns-domain-hosting.de ([178.63.89.203]:52635) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpcVx-0002Jl-V2 for 18986-done@debbugs.gnu.org; Sat, 15 Nov 2014 07:31:43 -0500 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from bertrandrussell.Speedport_W_723V_1_36_000 (p548BE8C7.dip0.t-ipconnect.de [84.139.232.199]) by srv4.ns-domain-hosting.de (Postfix) with ESMTPSA id 566DD186420; Sat, 15 Nov 2014 13:31:41 +0100 (CET) Date: Sat, 15 Nov 2014 13:31:39 +0100 Message-Id: <87egt4k5lg.fsf@bertrandrussell.Speedport_W_723V_1_36_000> From: florian@fsavigny.de (Florian v. Savigny) To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Sat, 08 Nov 2014 13:05:54 -0500) Subject: Re: bug#18986: Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="iso-8859-1" References: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18986-done Cc: dbh@doc.ic.ac.uk, jan.h.d@swipnet.se, 18986-done@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > From: Stefan Monnier > Date: Sat, 08 Nov 2014 13:05:54 -0500 > > The problem was specifically that just having xdg-open installed > doesn't guarantee that the user has configured it. The code > currently approximates "is it configured" by checking the desktop > environment in use. It's clearly a gross hack (or a crude > approximation), so if you know a better way, we'd like to hear it. Thank you very much for your feedback! It would seem to me that checking if xdg-mime query default text/html or, in a more general way, perhaps xdg-mime query default `xdg-mime query filetype URL/FILE` returns SOMETHING should be sufficient. I am absolutely NOT sure, I have to admit, because I have found the documentation for the xdg system not very accessible if you are interested in manual configuration, and lack the time to study it hard. I have found that what the above command returns is not necessarily what xdg-open will actually run (i.e. it does not seem to reflect user reconfiguration - which is probably why the query is called "default"), but it would seem to me that if it returns SOMETHING, there is a guarantee that there is a default, which in turn guarantees that xdg-open will start SOMETHING. This line of thought assumes that /usr/share/applications/*.desktop files for any given application will ONLY be there if the application itself is also installed, i.e. that they both come with the same package. I think that this is the case for any distribution I have used so far. Even if this assumption is unsafe, I think one could check if the return value of xdg-open is 3 or 4, which could then lead to a message such as "Please configure your xdg system properly; see man xdg-mime or your desktop environment's configuration tool" and/or to some fallback action (which browse-url is already capable of). Of course, this last measure could not be implemented within the browse-url-can-use-xdg-open function. An alternative approach (which would however not be mutually exclusive with the above) might be to make the hardcoded browser list in browse-url-default-browser customisable, which currently forces an order of preference on the user as follows: browse-url-gnome-moz-program browse-url-mozilla-program browse-url-firefox-program browse-url-chromium-program browse-url-galeon-program browse-url-kde-program browse-url-netscape-program browse-url-mosaic-program browse-url-xterm-program The reason why I am somehow uncomfortable with browse-url's logic of determining a browser to start is that I find it effectively (if most probably not intentionally) patronising, and this is, in my view, unusual for Emacs - out of character, as it were. I would like to apologise if my suggestions are not sufficiently substantial. Best regards, -- Florian von Savigny Melanchthonstr. 41 33615 Bielefeld From unknown Sat Jun 21 05:16:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 14 Dec 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 11:14:18 2018 Received: (at control) by debbugs.gnu.org; 12 Feb 2018 16:14:18 +0000 Received: from localhost ([127.0.0.1]:39899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGkE-0000Wm-LA for submit@debbugs.gnu.org; Mon, 12 Feb 2018 11:14:18 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:36244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGkC-0000WY-Id for control@debbugs.gnu.org; Mon, 12 Feb 2018 11:14:16 -0500 Received: by mail-wm0-f51.google.com with SMTP id f3so10951490wmc.1 for ; Mon, 12 Feb 2018 08:14:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=k0ptuxCctlkkc3eQdcZkoTfYPuEitJDC7X9D6NODAUw=; b=u4XAWb70oeZq5Xxvw0D0MAlUVwCv741vPKo801+5yMDBoBllqq4xU7daYufPVL/RUx 1uo9m1nW/br9atqNyKNUMdtXL+B7RlayH1AhBCZUXH8Cc6kg1BYGAO2v3QIZ/r6Fspgf bLdcpqUHHuSS2Oz/0RxCgs8ZPihepN9FU/78TkvAXmPFsJsAqN9MGE/M/zf9ujpBa0Q2 PlP0sfpnSTuRTZZrpPi12t7Dwu3QnL/+PoNK2ziEpqDC3rIm8N6vBn3tje0VaGi4HOFq /qtHZaGhUuewQaSqUqAhpkHDtmuMUv2HeI9vIP09ad8SZ752GaUUCOvS+xx3PuECZfb1 PsoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=k0ptuxCctlkkc3eQdcZkoTfYPuEitJDC7X9D6NODAUw=; b=O3AoxxFvSYjWI2vQ+7oxnH2hWQz3L00vN3ky8JNhxmPEtNuTjjzM+n2iscfCfjAnY6 PcZp6IcVI5PJbmwb/qU30SsT4X7M5x2b73vVx2Hej7/CFZXIQE6Wm1ChV6ticC+2xU3k 9nLvlyCH5xKzlvg3SnmGMsIwnx1HnEEzxTpwQ5RrwxOy6aiBI/T9Ly4n5jdqHxEUOpxE oE5kH9Y4qnSt+zq4RgN0kgtoO0NXn5Fe4C/aN84rs+EzZRinA+zW9VQadqFbUQtMleG4 0HLOzox8+IB83GQyF6voqK0OLeIsfE4iyE6LMaEqb0Wnd/zG4KzuAnn90ktvDs8cbTa4 yZxg== X-Gm-Message-State: APf1xPAKwXhdSmv6g9X7YWCpu0D/bZQtxDABNrvl/li6x1HA3S3P27xA C6OHu3QMjLVaT4bLTvoHMowIdw== X-Google-Smtp-Source: AH8x226dpqEVwqp85H4eOnxXgTUyLW3OYQaZuXtEhD3bgLIgamZZBJYovJJOQm+pVAMd8a5BhrTCBA== X-Received: by 10.28.72.11 with SMTP id v11mr3565533wma.135.1518452050303; Mon, 12 Feb 2018 08:14:10 -0800 (PST) Received: from mimimi (2a01cb040a37a0003a915b0581181238.ipv6.abo.wanadoo.fr. [2a01:cb04:a37:a000:3a91:5b05:8118:1238]) by smtp.gmail.com with ESMTPSA id d27sm3014239wrb.86.2018.02.12.08.14.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Feb 2018 08:14:09 -0800 (PST) User-agent: mu4e 1.0; emacs 25.3.1 From: Pierre Neidhardt To: control@debbugs.gnu.org Subject: #18986 Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption Date: Mon, 12 Feb 2018 17:14:08 +0100 Message-ID: <87bmgup4mn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain unarchive 18986 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlqBvVAACgkQm9z0l6S7 zH/fXQf/f2gLfwmuDgHBEc6Vtsi8eLNX+5UT15iPQrSa4vMVaNCHmBy+1qJhlZJh yRZClB2KKWQEfAri37z2sW87bce5iF7ZxhF3EqQr1y0e/L+6O9uL0v+l0CX0nhKo mjg/MITCCme8ifdnrj8HJ9cOdonQg52Z/rPPhJ+m/JUGcLu9EDFbpjaPlTMNYp3y FLfnY02QFbgYdwWIQcOcCBE2sxqbcRU7YxC+fEuwi3nd3ea7Prst+zvCivFCg0BK 9q8iy5OnSXozz9wvdCAybd/MRx3Uk+Lf++2wJVRMhHw6wqvm7s5HdAMHvhSuB1Vo 4OItB8dA4hli4ZRA5PvRdeVg4KakBA== =Lq8e -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 11:23:36 2018 Received: (at 18986) by debbugs.gnu.org; 12 Feb 2018 16:23:36 +0000 Received: from localhost ([127.0.0.1]:39908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGtE-0000lD-Gn for submit@debbugs.gnu.org; Mon, 12 Feb 2018 11:23:36 -0500 Received: from mail-wr0-f181.google.com ([209.85.128.181]:44296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGtC-0000kw-Ad for 18986@debbugs.gnu.org; Mon, 12 Feb 2018 11:23:34 -0500 Received: by mail-wr0-f181.google.com with SMTP id v65so8997863wrc.11 for <18986@debbugs.gnu.org>; Mon, 12 Feb 2018 08:23:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=CII6aOydwiY2qyZuZyJrpFDbqYc24vp6xrbPUMqwTaM=; b=dlYMsOXH9AHt9LGhXK+sqvUjrGB/aglfREiu0fcM1/Oet/zwXkljVxcyTM3pmKyXDA x3+dlaNKGZGv0IlV7Gtxm+0PbcNVO4lMC4Bpdl1kwKLYVn+WZpWBTT66lY/ER0icxXCw VDYQWQ7y4wVfIQZuNttSyDMwBxiN8GnNMuvQwVZyQWfyUPCJyn2KNRIpkGEewYEcRn5V IK0iQGDtlovNwWSe0Pmt7+IM24Xfwq3rOTcxN4noiChETjkmgN2lJq0kJdOrDhomMscr LAL75cMvc5gWLgm24/ijnqJ2cIFh4xUFRrNl7EfIVMzUuvVdaIeyJKkGeEiUr+8wrWuQ wNBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=CII6aOydwiY2qyZuZyJrpFDbqYc24vp6xrbPUMqwTaM=; b=VoUzJjLmLwDw32o6wQg61zp5fUFogZ8bKkZkEmrscfTLjayeYMgvCM4cSr3q/hjqJg RrXGZ99xC2bhUOhW6v9z3SeFPmust7vFRmJAnDPw880EjXZWSwfj2MtFNd7N07FbpMfm I9HsgB94FjWnEn1Jp3jLsodsXrfbZ+OJMVY1APOHI/mj/A7OpVgqkeIo/lo06DtVVq8p 3bhYr4CDhFleZIRLeL4vobvLV1OA1vspkMEthE9SHTnAfXZrUy0X6Q2j1+gsUeBhkuls C5Fifs1anoO0Snd3XODRtPZOk/KzzKNy8pVNXxc1xVRxH8ZBmwxC7ZazymTvbhiLgMmK aIvQ== X-Gm-Message-State: APf1xPARbAw437IgUnQxHGDIgmbRgBtBe1bVbhHMaruOCmhLdgjjrm9D uQcrjwhkNu1vmblE6vicdo7M8Q== X-Google-Smtp-Source: AH8x22641fgUuNyzxQp7VDXJRo5HDLyFyRUScdRdN8/VuFB//y+Hbxsl+2vTZ6z5vwPy0BwzRHyk7Q== X-Received: by 10.223.177.136 with SMTP id q8mr5453103wra.56.1518452608159; Mon, 12 Feb 2018 08:23:28 -0800 (PST) Received: from mimimi (2a01cb040a37a0003a915b0581181238.ipv6.abo.wanadoo.fr. [2a01:cb04:a37:a000:3a91:5b05:8118:1238]) by smtp.gmail.com with ESMTPSA id i11sm2946346wre.36.2018.02.12.08.23.27 for <18986@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Feb 2018 08:23:27 -0800 (PST) User-agent: mu4e 1.0; emacs 25.3.1 From: Pierre Neidhardt To: 18986@debbugs.gnu.org Subject: #18986 Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption Date: Mon, 12 Feb 2018 17:23:26 +0100 Message-ID: <87a7wep475.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18986 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain Sorry for digging out this old issue, but it seemed that Florian's suggestion (which was pretty good in my opinion) was never answered. I've been battling with browse-url for longer than necessary, it seems to me that there are just too many rough edges around xdg-open, xdg-mime, ~/.config/mimeapps.list, `mailcap-mime-extensions'... Having `browse-url-can-use-xdg-open' _and_ a customizable list of default browser in `browse-url-default-browser' would help tremendously. I'd like to add one more feature which could relieve non-DE users even further: (defun browse-url-default-browser (url &rest args) ... (apply (cond ... + ((getenv "BROWSER") (executable-find (getenv "BROWSER"))) ((memq system-type '(windows-nt ms-dos cygwin)) 'browse-url-default-windows-browser) The "BROWSER" environment variable is relativement common and if it is set, it most probably means that the users did that themselves. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlqBv34ACgkQm9z0l6S7 zH+XTAf+NSyQytxzP7ZFlsgzz6nOjYS14SRhS1bnlimCnxZgHAm0VQlm9HLioKiE DHyC395tFutWOvy3dtkaeKqhmUA58qGb/80egPbKKm+N28KgSw7hZQTx1PzzJlH3 r0Fmnt4fVoj6uKfzkflSatYQwUReY1JNeUa6QFIK4Qa80ltUksGCW9joNA1YgIxy XyH/EaiWwKAEbtsN3khf08HP2t2MHSzDQE9qoSt88sSMFW4F6zd/KqMW2MRSX90+ Lhi7/4twnqyYDKIDF4sQeaErUTUhgxjZqsKjQ2InfQ98f3jBiI2RfAaeoWzHPCNF yTcwlpQkAYto8a1eZbY4WKBoWihDqA== =Y9Ia -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 12:48:03 2018 Received: (at 18986) by debbugs.gnu.org; 12 Feb 2018 17:48:03 +0000 Received: from localhost ([127.0.0.1]:39974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elICx-0004c9-GF for submit@debbugs.gnu.org; Mon, 12 Feb 2018 12:48:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elICv-0004be-Jh for 18986@debbugs.gnu.org; Mon, 12 Feb 2018 12:48:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elICm-0007Vd-Mx for 18986@debbugs.gnu.org; Mon, 12 Feb 2018 12:47:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elICm-0007VS-J0; Mon, 12 Feb 2018 12:47:52 -0500 Received: from [176.228.60.248] (port=2781 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elICl-0004Xb-Te; Mon, 12 Feb 2018 12:47:52 -0500 Date: Mon, 12 Feb 2018 19:47:41 +0200 Message-Id: <83h8qmyu9u.fsf@gnu.org> From: Eli Zaretskii To: Pierre Neidhardt In-reply-to: <87a7wep475.fsf@gmail.com> (message from Pierre Neidhardt on Mon, 12 Feb 2018 17:23:26 +0100) Subject: Re: bug#18986: #18986 Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption References: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> <87a7wep475.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18986 Cc: 18986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Pierre Neidhardt > Date: Mon, 12 Feb 2018 17:23:26 +0100 > > Sorry for digging out this old issue, but it seemed that Florian's > suggestion (which was pretty good in my opinion) was never answered. What version of Emacs are you looking at? From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 12:51:52 2018 Received: (at 18986) by debbugs.gnu.org; 12 Feb 2018 17:51:52 +0000 Received: from localhost ([127.0.0.1]:39982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elIGe-0004hR-Dn for submit@debbugs.gnu.org; Mon, 12 Feb 2018 12:51:52 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:37478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elIGc-0004hD-Ry for 18986@debbugs.gnu.org; Mon, 12 Feb 2018 12:51:51 -0500 Received: by mail-wm0-f48.google.com with SMTP id v71so11539392wmv.2 for <18986@debbugs.gnu.org>; Mon, 12 Feb 2018 09:51:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=31MW5ld5JjTTEIye8+emCn9PwswGrYHIPl8BcRJ6iBc=; b=keHKVdSaqIqHVOWONzVpwCmpQSDd6hMF64vuE7UH6mrIHNbEm2RZsnPipFuK8gkfZV 850/2amQJHJ/4eWsunbiQ8y2EdOBSDpbpIuuq4rQjwqJlH/+YqEdEdq0/3xJsSQ+R7Yt 3YSYASojZsxahMaNaAejzShiFAKN1mjNp81o6e7Srg1FmeVCIMnNXt1WnS1dr+iV5xfJ 061hVVJy8cgSknPpGqXjo86Aqjq92Q+RgKkVIRIW2I8u6GQdx2oWxyq7q++4GUwGUyUa PGZhyqlHc3Dcud0S/8ScvHHmSQbr+cR1rDW+EVfi3rHeQrv1pFzas3iMWk7sSbBAlNRb Pa1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=31MW5ld5JjTTEIye8+emCn9PwswGrYHIPl8BcRJ6iBc=; b=lSLIL+dGye0NZUriGdOPJQMHj5T25u5CX7/2qVX+C60VqxuAEk7lGilMMzRxZ4ZWYL JgiFI5f5jyBPjwLZ7jXV4d5k4PnScNkqP9Nwu7cjD7MGJ8msVWQtJQsGTiDcf2LGFRfb EX7BhNqqv7ow8/VSrEFnF3Fbp5SRvb46FjR4EXIAnT/k8Osrx1wQa+Xae4U8tsDQjWMH Uaocl1LIXyqlljPh15dTXKEU4YIcGcjcmSrblp1n7Rn1QnyLaDhTwzfY6K12eZXkwv5e 8bNTvnEXC0QLJGuKl3CLO8AVcrfWvQgRTjD6gviZvCILpJtRt/PisL8HPCkm1b8MryHH uPDA== X-Gm-Message-State: APf1xPB5rUn9PavzZIjqOQPals0uOMCK8Dr0kJALd2FqF5vH4bNh5R+O YTgbMQVfeFNQxRRSxvnn6cEjFA== X-Google-Smtp-Source: AH8x224M+ohFgE6hY+j/NumZOLi38aSvN1JEwoq50j3Hq8NDKO58Hablcb+43KzFi8ECy6JWd55IHQ== X-Received: by 10.28.144.20 with SMTP id s20mr4450292wmd.149.1518457904861; Mon, 12 Feb 2018 09:51:44 -0800 (PST) Received: from mimimi (2a01cb040a37a0003a915b0581181238.ipv6.abo.wanadoo.fr. [2a01:cb04:a37:a000:3a91:5b05:8118:1238]) by smtp.gmail.com with ESMTPSA id j77sm13729078wmf.37.2018.02.12.09.51.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Feb 2018 09:51:44 -0800 (PST) References: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> <87a7wep475.fsf@gmail.com> <83h8qmyu9u.fsf@gnu.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Pierre Neidhardt To: Eli Zaretskii Subject: Re: bug#18986: #18986 Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption In-reply-to: <83h8qmyu9u.fsf@gnu.org> Date: Mon, 12 Feb 2018 18:51:43 +0100 Message-ID: <877erip040.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18986 Cc: 18986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain 25.3, can't follow master at the moment. Is it already fixed? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlqB1C8ACgkQm9z0l6S7 zH+KIggAqxVmxQyLd02RZzVzto9ShZHgeoKb4aGJUenbrtp4F82uP8cw7vInW2bG D0OhX0ctlQAYhpmXe8O+BBD5gSEw7lX6cOcgBhsklLXuLQVHrjqzxKfo/WL2yL9k 845RXvyZl8K4MtdBuG4iGkl+XYPHDdg0398rjrlZboKtrEDNTNNyWOhPUb+aZ0y8 S76epeUvGcWTATSflzFYK8Uzqi/rATPJD9w5IikumJgJmU71YICPZCFJ7pqJC1eH shbdvPN+wA6LcaXkEhW2QmNwjOAdpuC9M4OkXcYEVTqPnWFBnBODq4pT0XXDPcBa x2uKsnkqT3CYdERI86n+pv7Ud+u4aA== =8mRb -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 13:43:02 2018 Received: (at 18986) by debbugs.gnu.org; 12 Feb 2018 18:43:02 +0000 Received: from localhost ([127.0.0.1]:40006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elJ49-0005qh-VA for submit@debbugs.gnu.org; Mon, 12 Feb 2018 13:43:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elJ48-0005qD-NF for 18986@debbugs.gnu.org; Mon, 12 Feb 2018 13:43:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elJ40-0004cV-F4 for 18986@debbugs.gnu.org; Mon, 12 Feb 2018 13:42:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elJ40-0004cM-CC; Mon, 12 Feb 2018 13:42:52 -0500 Received: from [176.228.60.248] (port=2898 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elJ3z-0004l5-8k; Mon, 12 Feb 2018 13:42:52 -0500 Date: Mon, 12 Feb 2018 20:42:40 +0200 Message-Id: <838tbyyrq7.fsf@gnu.org> From: Eli Zaretskii To: Pierre Neidhardt In-reply-to: <877erip040.fsf@gmail.com> (message from Pierre Neidhardt on Mon, 12 Feb 2018 18:51:43 +0100) Subject: Re: bug#18986: #18986 Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption References: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> <87a7wep475.fsf@gmail.com> <83h8qmyu9u.fsf@gnu.org> <877erip040.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18986 Cc: 18986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Pierre Neidhardt > Cc: 18986@debbugs.gnu.org > Date: Mon, 12 Feb 2018 18:51:43 +0100 > > 25.3, can't follow master at the moment. Can you look at the latest pretest of 26.1? It's on alpha.gnu.org. > Is it already fixed? The code is definitely different from what you show. It's supposed to be fixed, but I don't know enough about that stuff to say, so it would be good if you could take a look at the current code. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 14 16:46:46 2018 Received: (at 18986) by debbugs.gnu.org; 14 Feb 2018 21:46:46 +0000 Received: from localhost ([127.0.0.1]:43398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em4t4-0002Dm-G0 for submit@debbugs.gnu.org; Wed, 14 Feb 2018 16:46:46 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:37670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em4t2-0002DZ-F5 for 18986@debbugs.gnu.org; Wed, 14 Feb 2018 16:46:44 -0500 Received: by mail-wm0-f68.google.com with SMTP id v71so24511070wmv.2 for <18986@debbugs.gnu.org>; Wed, 14 Feb 2018 13:46:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=jebzutdcv2+Wys/wsyR3rqzQbNap2Hk2EF90EmvG9lk=; b=o3eMeifzSiynNjaj/Q9xNBXiPxd0zASBnorHZ8KvQbxhyDNOczEUg7cf51/+PqNAUr L5qjcLDAdtNgNFHFhlLN7LKJw+gkr4mCDlRCRbp2IqmdOYnaGlnwUW1iP2WAbOS4SPXU s7V1AYHfkSrr9Pl9Mw2poDJ6j958MPJHnbyRhpVT8pdzc2/RG5qNyYhF1/UWVupOryZa 1gFDTSeTIqkBhCDPWCkMvd+OPqFio7YLrEhT6NBhJje+BpCUTjUkktJ3geSfxW/dL0C3 /7JuHsYklJXjiqWxF+ydUWzCm1lE9zrAn+ArzNyI1A1Yzf9hfX7DLDRivJIbD7mVHax5 q+7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=jebzutdcv2+Wys/wsyR3rqzQbNap2Hk2EF90EmvG9lk=; b=tENEEDMbDD0CT0L82P8dl/UHwjjaLll1JOOq6SAyOfcjLr3s+zkkDtKUzQ10U/o/cF 8gKv+zHLDRuNslJTFHFDGq2q/W0mp4YRBI7697nmu0+fJ/cUMEcDcd8xivCghSsys0Qx TgOPjNS9JISVKOBRwflhHluUfwuf47Rebu2Ho/LfZPVBiuk0eHNAlNy/mVA4oTKlo+RF c+3l+zueahnIFh5/tXAy8AaGwn3CFzWsD2fxzPmpVCgznPeRgeVL62u8zFVx3oNnSHkH 6S0SRMZ2OYfMta7eJcDtYBz/HRxyi7f1lNBMaq3Ot9/Eq0imTpI1jOz5wd10mrehvpch HyEg== X-Gm-Message-State: APf1xPD/i/+cP1rNHzEoqaUywkSVytGLHKl5EcM4AkuLfjDGSNtqyu2E 4GmYMwFELXdXUq1cv9Ll01P7Y+Of X-Google-Smtp-Source: AH8x22676uZ/fvMhKRuamjs0wpq1FfDcmzyoY4LYoKtpkJUkBVjFN6YD00lXVj+DtI9/D5uSi1bjvA== X-Received: by 10.28.13.18 with SMTP id 18mr409905wmn.112.1518644798357; Wed, 14 Feb 2018 13:46:38 -0800 (PST) Received: from mimimi (18.160.3.93.rev.sfr.net. [93.3.160.18]) by smtp.gmail.com with ESMTPSA id y145sm10118431wmd.43.2018.02.14.13.46.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Feb 2018 13:46:36 -0800 (PST) References: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> <87a7wep475.fsf@gmail.com> <83h8qmyu9u.fsf@gnu.org> <877erip040.fsf@gmail.com> <838tbyyrq7.fsf@gnu.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Pierre Neidhardt To: Eli Zaretskii Subject: Re: bug#18986: #18986 Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption In-reply-to: <838tbyyrq7.fsf@gnu.org> Date: Wed, 14 Feb 2018 22:46:35 +0100 Message-ID: <87tvujp7lw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18986 Cc: 18986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain > Can you look at the latest pretest of 26.1? It's on alpha.gnu.org. I will as soon as possible. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlqErjsACgkQm9z0l6S7 zH+IUwf+OfeFGbKM/5lZjRUslb6hSfHKFG53WLy07+/ZbdulMRDDP6Tg9Y2wHh0N Ym+WDjpn1HZ4LwT3V7//AfdWtzgdKE/YItr/rqxkYCD/Hk5TtBJrs0iz8eQYxZwe bgY3GIfzAEgPVtdb2QOAqsJ8LfZS5+BDaTz73WgdWNGL00jhqgKbwERC1aKvoNLq HFsy0oSQCDY2w2Tn0iUqVjJU9/cYDDdEaQlahDmk7NVlEJQnglFGtsWluLWFTqWs W0ZKRhGtHaQi29W9LrLygED4xIo+vqYXC1klwWqe4+hXy24qNFNXPxZ7yIGINSW/ iUpjX/l2pUyHzAXIoJ9j+u8CT9SnJA== =Uaxp -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 14 21:14:12 2018 Received: (at 18986) by debbugs.gnu.org; 15 Feb 2018 02:14:12 +0000 Received: from localhost ([127.0.0.1]:43515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em93s-0000jA-5B for submit@debbugs.gnu.org; Wed, 14 Feb 2018 21:14:12 -0500 Received: from mail-it0-f48.google.com ([209.85.214.48]:33324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em93q-0000ir-3c; Wed, 14 Feb 2018 21:14:10 -0500 Received: by mail-it0-f48.google.com with SMTP id 140so8179203iti.0; Wed, 14 Feb 2018 18:14:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=9n7hCRSx/wUhgdSPg/skKLneHmB8981Bjt6lNwkV5wc=; b=UXgf/urlAvTULYyQokLBrN0fFi0UGqVaF2kGfJdLIZbuCDtzmPziWD3fv2xwqFt5kl u76O1cgp2trfBQVVAw0FBJVPA/QP0zwmcGWU9tFdkOgGBzU1NDOZuQ7Nc1LcvjFxOQ3C WOzEQL9QaghK/w6C+r6vU/obNfuEblYwW4EeDkHAUAXiwcloBs59ARNwXwSG75JUg3pr fCyb6+OQ4aiQhogVYVh9t7t2ix+l8jqmvUejzO/DSO+RmjRUaepcvSCa/Wnhq6Q0/eqI 1hWmks3F24wkILeBTdRmv9sOre6BJP3zMWYgCLDD4PZ5tEsE80AT5oNrc4Yy5rS3yPQh VGOw== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=9n7hCRSx/wUhgdSPg/skKLneHmB8981Bjt6lNwkV5wc=; b=HWrARihBS+xzKLHt8uculE/OXidK0Zt1xxWvrWek7bJy62+UDB9aiCJSHvr0g7WG87 yMUMBllpsap4SHluudgNdic5La97wZqXgKi6V67b/uA1BQSXWXXYC+99JdlOdU+qjsm4 fhIEI/8u+c3QQg1aZvKRjamzYuHrAVeLWp8KrLGMOdRpVFYqz7HUrmxlN9XYsw9k2Vzw mt5r+JELSrwC0l6c4dLRHCDyu6r5Hl14iM1vQeCmASYssuhZGAj/31GCh9cUd8+rCCHA ayUfGwp92BbQmBnsrKr+s2J9Fx2KfbaKpq+4LU5JhASIDg/k7Wf0UmvUMAnpeWyAe+QJ n3fw== X-Gm-Message-State: APf1xPB6OvvyzENijY0Kk9oVyfidYsnIiVyWx6rItbUZPCWAtNqmZett so9twoRFnA1O+I0c6W5crWWmYA== X-Google-Smtp-Source: AH8x224tGTUtGZ/t7mejhbL3eX8OyLYH4zxTHB/UNBRHc6vYCgASI6SXXFvG+uVpa+O9uNGutN86Hw== X-Received: by 10.36.69.133 with SMTP id c5mr1485293itd.135.1518660844491; Wed, 14 Feb 2018 18:14:04 -0800 (PST) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id s70sm15241631itb.0.2018.02.14.18.14.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Feb 2018 18:14:03 -0800 (PST) From: Noam Postavsky To: Pierre Neidhardt Subject: Re: bug#18986: #18986 Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption References: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> <87a7wep475.fsf@gmail.com> <83h8qmyu9u.fsf@gnu.org> <877erip040.fsf@gmail.com> <838tbyyrq7.fsf@gnu.org> <87tvujp7lw.fsf@gmail.com> Date: Wed, 14 Feb 2018 21:14:02 -0500 In-Reply-To: <87tvujp7lw.fsf@gmail.com> (Pierre Neidhardt's message of "Wed, 14 Feb 2018 22:46:35 +0100") Message-ID: <871shn80et.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18986 Cc: 18986@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) tag 18986 - notabug wontfix fixed 18986 26.1 unarchive 25778 merge 18986 25778 quit Pierre Neidhardt writes: >> Can you look at the latest pretest of 26.1? It's on alpha.gnu.org. > > I will as soon as possible. >From what I can tell, the Emacs 26 code is pretty close to what Florian suggested, you can see it also in Bug#25778 which I've merged. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 15 19:28:13 2018 Received: (at 18986) by debbugs.gnu.org; 16 Feb 2018 00:28:14 +0000 Received: from localhost ([127.0.0.1]:45339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emTsr-0005fE-Oc for submit@debbugs.gnu.org; Thu, 15 Feb 2018 19:28:13 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:44495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emTso-0005ez-M5 for 18986@debbugs.gnu.org; Thu, 15 Feb 2018 19:28:10 -0500 Received: by mail-wr0-f195.google.com with SMTP id v65so1393840wrc.11 for <18986@debbugs.gnu.org>; Thu, 15 Feb 2018 16:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=Tw/r1wr5j2wadKSTyRsvEMGLCQcZH5AJVS0PR8luga8=; b=d72siaa6jj7CX6ya797rhfWz86+xo+wxuy4TGsY8Zwk9875aCEA5ZuXKi0YewWpZ+u vEEUS3WipJ/AS00ao+cAUzKgjFeA82435W3w/EkOf/YOlB7DWqMkoi6IWrk5e+vJL7tm FAXW/o5gH72G2qll2q2wXVP0PcAN3xxsQHBKad+nKSkLyNarOEwrNs8SumWsVua7fRFY cf7rQfqw77je2Y7vQ/Hs/bNeQJdrwbdEU5/Y9lkCtLnHVuua6tKYxnPdwVXrV7WbtMzM 6NqFpYeWhbWOBPqSdDOCV201M1cpNU+1vcQZvADm6Wn4Ac3cZkV38/atAMZmOQLqMp/2 5QKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=Tw/r1wr5j2wadKSTyRsvEMGLCQcZH5AJVS0PR8luga8=; b=tgBy+D30j5RSUczOE2tl+BDjVgDissq6/m5hYrV8M700+Zzr9m7qK82lrSpLmXGnNc 6pjmpBYIVuR2MkMVaKmfF4JHby89Ls8J9ZxAMz/U7DhsDxTvfjeVdRBlcLV9xCxiqrmx b0UOthee+ntj+p1UpxSgSYGkvjwgcxwWmUbLJ838N7FFwxhsPgzmr522JuoqlT7VFfEe zciUwBiBKIELeJL4K3YIRD8ZW7J57ZJ5Efdl1RhuxmsL7EjYOMG8fwdKoiY6XQhZkmUn 3qL8sK6I1ZWHGjpqbZRTj1AmKdKsKtTekgRHmAQAqRemw4W31nClbDp4zPHnskAxjQ95 4M4Q== X-Gm-Message-State: APf1xPCmGiq/6TQEeoIf8MYHaUh6r6op227x0gEyjk+PY5F1IaOI3wrp dZJTmWw4Zo0X4u88XKodu3FjZrBLqmM= X-Google-Smtp-Source: AH8x224B4TmMgE3nYVycUZUFIt1wyZRyni4d+O5HwLXCNAn6lVpNHDN3vFHUi+9QS0KUXT8kP+L5Xw== X-Received: by 10.223.161.72 with SMTP id r8mr3764262wrr.55.1518740884707; Thu, 15 Feb 2018 16:28:04 -0800 (PST) Received: from mimimi (18.160.3.93.rev.sfr.net. [93.3.160.18]) by smtp.gmail.com with ESMTPSA id k125sm27997147wmd.48.2018.02.15.16.28.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Feb 2018 16:28:03 -0800 (PST) References: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> <87a7wep475.fsf@gmail.com> <83h8qmyu9u.fsf@gnu.org> <877erip040.fsf@gmail.com> <838tbyyrq7.fsf@gnu.org> <87tvujp7lw.fsf@gmail.com> <871shn80et.fsf@gmail.com> User-agent: mu4e 1.0; emacs 26.0.91 From: Pierre Neidhardt To: Noam Postavsky Subject: Re: bug#18986: #18986 Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption In-reply-to: <871shn80et.fsf@gmail.com> Date: Fri, 16 Feb 2018 01:28:01 +0100 Message-ID: <87vaexbwxa.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18986 Cc: 18986@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain OK, I'm running Emacs 26 now, and it the xdg-open is indeed solved as per #25778. Still one rough edge left: if xdg-open is missing but BROWSER is set, Emacs will not run the browser configured by the user but the first one it found in the list. I think the patch I suggested above would be good enough, or maybe even better: (defun browse-url-default-browser (url &rest args) ... (apply (cond ... + ((and (getenv "BROWSER") (executable-find (getenv "BROWSER"))) + (executable-find (getenv "BROWSER"))) ((memq system-type '(windows-nt ms-dos cygwin)) 'browse-url-default-windows-browser) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlqGJZEACgkQm9z0l6S7 zH9c3Qf8DdFEuexxurFg0vKOkzZZGxklDYo9uyWynZYWnVFeuvP/9IZe4S3iCHRY VetifLEFpI4YMqyk3DAxGb5Bj4uWjbG83G3Xe07OfOwYskpr1Wk8ssrmWJBUoJSz qQe+ISaxdZWrAYwu2xEsAI7YRF7euxiDHln0WI4Otrwj5hyX7pLEhlTsVPIpw6yU GcixczRlUAjoW7Ymr1EdYmyMMW75t9hkQ9dTu04q1vKSWkk1CUJbuKhtxjgzlgxe JnrVw6tmx0H3cN6LDbLUvmo0fyfc5q80viuipAxf59rcM5vhoA1pc2Ov33zi/+Re nHtDlUxGwzoFkvXZU1yLcJGb+vhnQA== =4VEL -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 15 19:42:12 2018 Received: (at 18986) by debbugs.gnu.org; 16 Feb 2018 00:42:12 +0000 Received: from localhost ([127.0.0.1]:45343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emU6O-0005yp-08 for submit@debbugs.gnu.org; Thu, 15 Feb 2018 19:42:12 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:41603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emU6M-0005yc-RY for 18986@debbugs.gnu.org; Thu, 15 Feb 2018 19:42:11 -0500 Received: by mail-wr0-f196.google.com with SMTP id f8so1424400wrh.8 for <18986@debbugs.gnu.org>; Thu, 15 Feb 2018 16:42:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=vofENsjrpOuLfUysxZD1dev3zPqBArN6GskvdvAzWNo=; b=g7m3tQGVnyU1+lRzc/iTQIzy5aZU9xd01TbkccqbKFXlSU3I3lGuTJVoV8r1zp+NaK T6bDv1mq9rVulR9/C4DN/3y08YhQ5fici9jDDPvCmHBRtSeGDfdgsBtFxgG0OeqWZKOd JDfDdYGp7RgyGXzWdYcH/qmS6SDqUSWsUw2xNzZfFXcozJH0zEz8P1ayNLfdtpa1/0IL lvAWxr/0wZSchsa5VisbLTplhJh+nOEyTwQjwqgdCBap36IV1weZ9GaHzd4qOAEUSqn1 3XiEQW1i1C9Mngw46qIPJD6Rrd6Qa8nGj1OVe3rKjoqHpR2MnIzS+42am7BTRkw+Bvox vUhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=vofENsjrpOuLfUysxZD1dev3zPqBArN6GskvdvAzWNo=; b=Y4XHDg21GvroSfwXgFlYzCTKNK2rFq/Oa4tST8CQsKafvAgGoNyDCf9sdIjtD1+ilv th7cTA12t8c0Xcr/AIhxToWw8q0sIjwI5TIJDQiA+bXX+49titMV6sy0uHXusjB/lW3I ypuNRWQAplaeBI1Dzqtb0LXXE8Yewa59q9gFuuahdnCK2uCQ7J8pGvDPnYcs9rb15YMB nlwt+1vv8Q107THdJJhnfVC3GDF+t9l3otonI/AeA4E3Y686T77a4l1WtuvbkVS8dM7w 3eYzlOAnjgb+HXIpaLYfJmjsj/rYupPfLeJHFmoxXX+6+GPNHx1whMhBnVDiwAlxq235 qlVg== X-Gm-Message-State: APf1xPBsOZQS8kw3LDWqQYPbDcrLxlZsWMF1Qv9JJd3Ttx08BzGNAmZt C24l3Tcn2u3yV9akd9R6UA8K7hS3yoE= X-Google-Smtp-Source: AH8x22441rsc3Q43RBPr7qi99mkoAlQYoMfkjy3wa4+chY70IR+UxvTolyS2uvc/SyZ1qJo3IuYBQA== X-Received: by 10.223.186.144 with SMTP id p16mr4354444wrg.259.1518741724986; Thu, 15 Feb 2018 16:42:04 -0800 (PST) Received: from mimimi (18.160.3.93.rev.sfr.net. [93.3.160.18]) by smtp.gmail.com with ESMTPSA id k20sm26014790wmh.20.2018.02.15.16.42.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Feb 2018 16:42:04 -0800 (PST) References: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> <87a7wep475.fsf@gmail.com> <83h8qmyu9u.fsf@gnu.org> <877erip040.fsf@gmail.com> <838tbyyrq7.fsf@gnu.org> <87tvujp7lw.fsf@gmail.com> <871shn80et.fsf@gmail.com> <87vaexbwxa.fsf@gmail.com> User-agent: mu4e 1.0; emacs 26.0.91 From: Pierre Neidhardt To: Noam Postavsky Subject: Re: bug#18986: #18986 Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption In-reply-to: <87vaexbwxa.fsf@gmail.com> Date: Fri, 16 Feb 2018 01:42:03 +0100 Message-ID: <87tvuhbw9w.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18986 Cc: 18986@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain Actually the design issue is a bit deeper than that: As of now (even with my suggested change) there is no proper way of retrieving the browser name. This can be problematic especially when it comes to managing processes and frames (e.g. with EXWM). So I suggest the following refactoring: - Remove `browse-url-generic'. - `browse-url-browser-function' should return a browser name (the function might need a new name). - `browse-url-default-browser' should obey the change and return a browser name, with the first check being on `browse-url-generic-program`, second check on the environment variable, third check on xdg-open, and the rest as usual. Everything gets simple, both the code and the user configuration, plus it's more flexible. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlqGKNsACgkQm9z0l6S7 zH826wgAjvvRkRYVUrnW/k6VVDF+mQg+pDRtCzzrOMsF7LRGGfezk9yKa7Axa6zI 4oISGb3jMc7dLNPJaO01aV+tTys3TnI9Tj2cxbtpcExyDEvAqebu/26V3pV4O/YH 9d44ImWl35//fTrfJ0JEq5X6bERMgR/Oq0aGtAIu7wYpLr4QC0jDk6GJKEGfZ6A4 44O+GZaCmpYmlw1AkouAHwZBo018w8zPkIGbMJBm4YdVUE/AjTga6KA6LHq5E1/b 2myMPaI1KJ5HKTEALcJLbj217HL09maZFaSQctDGpdeNqx+huKHcazD+ACo8iZvc lUSHjH6j+iy3gJpGsXBcHNwbU8iSeg== =N+QN -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Jun 21 05:16:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 16 Mar 2018 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator