From 5ab1e2dc0f08f3e3093a1ba1681ca25217f6c79f Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 12 Mar 2020 17:27:37 +0100 Subject: [PATCH] help: Always use xdg-open if available Even if $DISPLAY is unset, xdg-open can be useful, and on systems that have xdg-open, "open" is most likely some god awful outdated thing called "openvt" elsewhere. Fixes #6739 [ci skip] --- share/functions/help.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/share/functions/help.fish b/share/functions/help.fish index 7cac6cbd9..408bbb3b7 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -68,8 +68,7 @@ function help --description 'Show help for the fish shell' if type -q cygstart set fish_browser cygstart # If xdg-open is available, just use that - # but only if an X session is running - else if type -q xdg-open; and set -q -x DISPLAY + else if type -q xdg-open set fish_browser xdg-open end