Skip to content

Commit

Permalink
help: Always use xdg-open if available
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
faho committed Mar 12, 2020
1 parent 6237a24 commit 5ab1e2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions share/functions/help.fish
Expand Up @@ -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

Expand Down

0 comments on commit 5ab1e2d

Please sign in to comment.