diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-02-24 03:23:23 -0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-02-24 03:23:23 -0800 |
commit | 5c124d515123f77de9f9c8fa6e253fd6adaf8dde (patch) | |
tree | 6b87059d225c3b345c50e3c35063b2f6eb3329a8 /sh/pme | |
parent | 52128e55dd5f8e3ac0dc32a5137e293248078212 (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-x | sh/pme | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |