diff options
author | 2005-12-21 23:53:53 +1000 | |
---|---|---|
committer | 2005-12-21 23:53:53 +1000 | |
commit | 3a69fc997c01c01419c53a94d63f0720abf5c0c5 (patch) | |
tree | 6d472f71fbcf62d6ec4e109a1bad8d2b4b869a97 /init | |
parent | c216e36a723c6357cc20574819829877f8ddb348 (diff) |
Check Xautority before trying to use X-based browser in help shellscript
darcs-hash:20051221135353-ac50b-9b8b37d7465d64a209e34ed047bd6e055a4fc179.gz
Diffstat (limited to 'init')
-rw-r--r-- | init/fish_function.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/fish_function.fish b/init/fish_function.fish index 1ba63bb1..7b7232e2 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 |