password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 87ec1489fa9859e4bb6fb382b6a24447a937bdcf
parent ddb5806bafd07681185e3b8e1af144a62e9f5d34
Author: Chris Down <cdown@fb.com>
Date:   Fri, 24 Jul 2015 11:28:47 -0700

passmenu: Read from stdin when using xdotool to type password

This works around a bug in xdotool parsing when encountering quotes, see
https://github.com/jordansissel/xdotool/issues/72.

Thanks to Gerd Wachsmuth for the report.

Diffstat:
Mcontrib/dmenu/passmenu | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/dmenu/passmenu b/contrib/dmenu/passmenu @@ -20,5 +20,5 @@ password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@") if [[ $typeit -eq 0 ]]; then pass show -c "$password" 2>/dev/null else - xdotool - <<<"type --clearmodifiers -- $(pass show "$password" | head -n 1)" + pass show "$password" | tr -d '\n' | xdotool type --clearmodifiers --file - fi