X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Fvariables.sh;h=b64b167098c89726696ab05b7edb3ebeddf51ea4;hb=92107a9ca9a480a0067206debaf141d132b62333;hp=0628a4f1d017f197bfcc79bb579f652c7c030fb3;hpb=280dbedc657c8d2a5b3cfe822d3e524c3ad5c4bd;p=feisty_meow.git diff --git a/scripts/core/variables.sh b/scripts/core/variables.sh index 0628a4f1..b64b1670 100644 --- a/scripts/core/variables.sh +++ b/scripts/core/variables.sh @@ -311,8 +311,11 @@ done # a late breaking action is to set the editor, if we can. # we will fallback to whatever we can find on the host. export EDITOR -if [ -z "$EDITOR" ]; then - EDITOR="$(which bluefish)" +if [ ! -z "$DISPLAY" ]; then + # only try to add bluefish, a gui editor, if there is an X display for it. + if [ -z "$EDITOR" ]; then + EDITOR="$(which bluefish)" + fi fi if [ -z "$EDITOR" ]; then EDITOR="$(which gvim)"