summaryrefslogtreecommitdiff
path: root/contrib/dmenu
diff options
context:
space:
mode:
authorChris Down <cdown@fb.com>2015-07-24 11:28:47 -0700
committerChris Down <cdown@fb.com>2015-07-24 11:28:47 -0700
commit87ec1489fa9859e4bb6fb382b6a24447a937bdcf (patch)
treef462e22750ce9ec1e047a5a338b5d752e867afe1 /contrib/dmenu
parentddb5806bafd07681185e3b8e1af144a62e9f5d34 (diff)
downloadpass-87ec1489fa9859e4bb6fb382b6a24447a937bdcf.tar.gz
pass-87ec1489fa9859e4bb6fb382b6a24447a937bdcf.tar.bz2
pass-87ec1489fa9859e4bb6fb382b6a24447a937bdcf.zip
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 (limited to '')
-rwxr-xr-xcontrib/dmenu/passmenu2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/dmenu/passmenu b/contrib/dmenu/passmenu
index a0da173..486b663 100755
--- 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