From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Florian v. Savigny" Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: =?iso-8859-1?q?Design bug in browse-url.el: browse-url-can-use-xdg-open's logic uses overly strict assumption?= Date: Fri, 07 Nov 2014 12:04:52 +0100 Message-ID: <85lhnnw9t7.fsf@bertrandrussell.Speedport_W_723V_1_36_000> NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1415363422 28672 80.91.229.3 (7 Nov 2014 12:30:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2014 12:30:22 +0000 (UTC) Cc: Denis Howe , emacs-devel@gnu.org To: bug-gnu-emacs@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 07 13:30:16 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XmigA-00083g-CU for ged-emacs-devel@m.gmane.org; Fri, 07 Nov 2014 13:30:14 +0100 Original-Received: from localhost ([::1]:59869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmigA-0003t1-0Y for ged-emacs-devel@m.gmane.org; Fri, 07 Nov 2014 07:30:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmhNH-0002FO-I5 for emacs-devel@gnu.org; Fri, 07 Nov 2014 06:06:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmhNB-0004Zk-VR for emacs-devel@gnu.org; Fri, 07 Nov 2014 06:06:39 -0500 Original-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 Original-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) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.89.203 X-Mailman-Approved-At: Fri, 07 Nov 2014 07:30:00 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176516 gmane.emacs.bugs:95653 Archived-At: 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