From a823c546996a245dab0822658d297cc9bcecea63 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Mon, 19 Nov 2012 12:24:45 +0000 Subject: Don't save keyboard config if we are not inside X --- 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 -- cgit v0.9.1