diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-19 12:24:45 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-19 12:24:45 (GMT) |
commit | a823c546996a245dab0822658d297cc9bcecea63 (patch) | |
tree | 4e943c0ad6220525f7b7cfc3e11a7269c50936ca /commands/run | |
parent | 54944e1de53c879b30024ebe5522d70cdf2f068c (diff) |
Don't save keyboard config if we are not inside X
Diffstat (limited to 'commands/run')
-rwxr-xr-x | commands/run | 2 |
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 |