From 5c124d515123f77de9f9c8fa6e253fd6adaf8dde Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Mon, 24 Feb 2025 03:23:23 -0800 Subject: 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. --- sh/pme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2