From 9c8d6b8ff823b89d7c7a8d652ead56de3d91c8c1 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Wed, 15 Nov 2017 14:27:56 -0500 Subject: [PATCH] making bluefish as editor require X --- scripts/core/variables.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)" -- 2.34.1