unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vasilij Schneidermann <v.schneidermann@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25778@debbugs.gnu.org
Subject: bug#25778: 25.1; [PATCH] Drastically simplify xdg-open check
Date: Fri, 17 Feb 2017 19:55:14 +0100	[thread overview]
Message-ID: <20170217185514.GA599@odonien.localdomain> (raw)
In-Reply-To: <83shncr7bh.fsf@gnu.org>

> First, checking $DISPLAY doesn't yet mean you are in a GUI frame.  We
> have display-graphic-p for that.

The assumption that you need to be in a GUI frame is incorrect.  If I
run `emacs -nw` in a graphical terminal emulator, why would that prevent
me from opening a graphical browser?  The only way I see to detect
whether a graphical browser can be opened is by checking for X with
$DISPLAY.

> And second, I don't understand what will happen with all the bugs
> mentioned in the comments if we remove the code that was supposed to
> avoid hitting them.  Maybe I'm missing something obvious.

OK, I'll go through them all for completeness' sake:

- bug#7166: This one arises from using /bin/sh in combination with
  `nohup` for launching xdg-open, resulting in a lack of shell quoting.
  As `xdg-open` is launched directly, it's no longer relevant and only
  mentioned because of `nohup` (which is no longer used either).
- bug#8917: The old usage of `call-process` has made `nohup` obsolete.
  Irrelevant as `nohup` isn't used any longer.
- bug#9779: Extension of the now removed xdg-open DE detection logic,
  together with some discussion whether nohup is still necessary.  Some
  voices in favor of not doing any unnecessary detection.
- The linked emacs-devel thread: Sighting of a possible bug in
  gnome-open.  As `nohup` is no longer used, there's no way this could
  have been worked around with its usage

Summary: All linked bugs are related to `nohup` which is only checked
for, but not actually used.  Therefore they can be disregarded.

Do you have any actual objections based on a situation where one would
*not* want to use xdg-open, even though it's installed and the user in a
X11 session?





  reply	other threads:[~2017-02-17 18:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-17 18:16 bug#25778: 25.1; [PATCH] Drastically simplify xdg-open check Vasilij Schneidermann
2017-02-17 18:38 ` Eli Zaretskii
2017-02-17 18:55   ` Vasilij Schneidermann [this message]
2017-02-18  3:39     ` Glenn Morris
2017-02-18  3:46       ` Glenn Morris
2017-02-18  8:55         ` Vasilij Schneidermann
2017-02-19  0:31           ` Glenn Morris
2017-02-19 13:06             ` Vasilij Schneidermann
2017-02-18  7:58     ` Eli Zaretskii
2017-02-18  8:50       ` Vasilij Schneidermann
2017-03-10  3:13 ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170217185514.GA599@odonien.localdomain \
    --to=v.schneidermann@gmail.com \
    --cc=25778@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).