From 3a69fc997c01c01419c53a94d63f0720abf5c0c5 Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 21 Dec 2005 23:53:53 +1000 Subject: [PATCH] Check Xautority before trying to use X-based browser in help shellscript darcs-hash:20051221135353-ac50b-9b8b37d7465d64a209e34ed047bd6e055a4fc179.gz --- init/fish_function.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/fish_function.fish b/init/fish_function.fish index 1ba63bb1e..7b7232e24 100644 --- a/init/fish_function.fish +++ b/init/fish_function.fish @@ -115,7 +115,7 @@ function help -d "Show help for the fish shell" # If we are in a graphical environment, we check if there is a # graphical browser to use instead. - if test (echo $DISPLAY) + if test (echo $DISPLAY) -a \( "$XAUTHORITY" = "$HOME/.Xauthority" -o "$XAUTHORITY" = "" \) for i in $graphical_browsers if which $i 2>/dev/null >/dev/null set fish_browser $i