From: Chris Koeritz Date: Wed, 15 Nov 2017 19:27:56 +0000 (-0500) Subject: making bluefish as editor require X X-Git-Tag: 2.140.100^2~7 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=9c8d6b8ff823b89d7c7a8d652ead56de3d91c8c1;p=feisty_meow.git making bluefish as editor require X --- 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)"