summaryrefslogtreecommitdiff
path: root/sh/pme
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-02-24 03:23:23 -0800
committerXiao Pan <xyz@flylightning.xyz>2025-02-24 03:23:23 -0800
commit5c124d515123f77de9f9c8fa6e253fd6adaf8dde (patch)
tree6b87059d225c3b345c50e3c35063b2f6eb3329a8 /sh/pme
parent52128e55dd5f8e3ac0dc32a5137e293248078212 (diff)
Revert "Some programs do not like \r when enter password"
This reverts commit 52128e55dd5f8e3ac0dc32a5137e293248078212. The reason for my linux computer an-anime-game-launcher launched genshin impact `pme` xdotool simulate typing password fail is not because of \r it is because of xdotool needs higher --delay. Test shows at least about `--delay 130` works, else some capitalized chars will not be capitalized. It can be tested in the username input box.
Diffstat (limited to 'sh/pme')
-rwxr-xr-xsh/pme2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/pme b/sh/pme
index be41b51..16d1c09 100755
--- a/sh/pme
+++ b/sh/pme
@@ -24,7 +24,7 @@ find "$HOME/.password-store/" \( -type f -o -type l \) -name '*.gpg' \
awk 'tolower($1) ~ /^(user|username):$/ {printf $2}'
else
# modified from https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu#n34 GPL-2.0-or-later code
- IFS= read -r p; printf '%s' "$p"
+ IFS= read -r p; printf '%s\r' "$p"
fi
}
fi