projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28893c7
)
making bluefish as editor require X
author
Chris Koeritz
<fred@gruntose.com>
Wed, 15 Nov 2017 19:27:56 +0000
(14:27 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Wed, 15 Nov 2017 19:27:56 +0000
(14:27 -0500)
scripts/core/variables.sh
patch
|
blob
|
history
diff --git
a/scripts/core/variables.sh
b/scripts/core/variables.sh
index 0628a4f1d017f197bfcc79bb579f652c7c030fb3..b64b167098c89726696ab05b7edb3ebeddf51ea4 100644
(file)
--- 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)"