commit b790fa73013cd2ca27f32634c651bc4a3df6c289
parent d853ac3a2d36bc1fd40e6d206eaa3b632a2dbf09
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Tue, 19 Dec 2023 14:05:32 +0100
fix problem with spaces
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/xpass b/xpass
@@ -70,18 +70,18 @@ fi
WINDOW=$(xdotool getactivewindow)
function dologin() {
- echo "type --window $WINDOW $USERDAT" | xdotool -
+ echo "type --window $WINDOW '$USERDAT'" | xdotool -
}
function dofill() {
- echo "type --window $WINDOW $USERDAT" | xdotool -
+ echo "type --window $WINDOW '$USERDAT'" | xdotool -
sleep 0.1
echo "key --window $WINDOW Tab" | xdotool -
sleep 0.1
# delete any password which may already be autocompleted
seq 20 | sed 's/.*/key --window '"$WINDOW"' BackSpace/g' | xdotool -
sleep 0.1
- echo "type --window $WINDOW $PASSWORD" | xdotool -
+ echo "type --window $WINDOW '$PASSWORD'" | xdotool -
}
case $USER in