Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-19 12:24:45 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-19 12:24:45 (GMT)
commita823c546996a245dab0822658d297cc9bcecea63 (patch)
tree4e943c0ad6220525f7b7cfc3e11a7269c50936ca
parent54944e1de53c879b30024ebe5522d70cdf2f068c (diff)
Don't save keyboard config if we are not inside X
-rwxr-xr-xcommands/run2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/run b/commands/run
index 2dfa085..70f9611 100755
--- a/commands/run
+++ b/commands/run
@@ -9,7 +9,7 @@ if [ -f $rootdir/prefs ]; then
source $rootdir/prefs
fi
-if [ -n $SUGAR_DISPLAY ]; then
+if [ ! -z $DISPLAY ]; then
SUGAR_XKBCONFIG=`mktemp -t sugar-xkbconfig-XXXXXX`
setxkbmap -print > $SUGAR_XKBCONFIG
export SUGAR_XKBCONFIG