Subject: bug#25778: 25.1; [PATCH] Drastically simplify xdg-open check

From: Vasilij Schneidermann <[email-masked]>
Date: Sat, 18 Feb 2017 09:50:25 +0100

> 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.