fix for passing keyboard arguments

master
Maarten van Gompel 4 years ago
parent 53f31f060b
commit 39739ae974
  1. 2
      scripts/core/sxmo_keyboard.sh
  2. 3
      scripts/core/sxmo_xinit.sh

@ -9,7 +9,7 @@ SXMO_NO_ICONS=1 #just to make it a bit faster
open() { open() {
#Note: KEYBOARD_ARGS is not quoted by design as it may includes a pipe and further tools #Note: KEYBOARD_ARGS is not quoted by design as it may includes a pipe and further tools
# shellcheck disable=SC2086 # shellcheck disable=SC2086
pidof -q "$KEYBOARD" || "$KEYBOARD" $KEYBOARD_ARGS & pidof -q "$KEYBOARD" || eval "$KEYBOARD" $KEYBOARD_ARGS &
} }
close() { close() {

@ -45,14 +45,11 @@ xdefaults() {
defaultkeyboard() { defaultkeyboard() {
if command -v svkbd-mobile-intl; then if command -v svkbd-mobile-intl; then
export KEYBOARD=svkbd-mobile-intl export KEYBOARD=svkbd-mobile-intl
export KEYBOARD_ARGS=
elif command -v svkbd-mobile-plain; then elif command -v svkbd-mobile-plain; then
export KEYBOARD=svkbd-mobile-plain export KEYBOARD=svkbd-mobile-plain
export KEYBOARD_ARGS=
else else
#legacy #legacy
export KEYBOARD=svkbd-sxmo export KEYBOARD=svkbd-sxmo
export KEYBOARD_ARGS=
fi fi
} }

Loading…
Cancel
Save