Hi,

passmenu auto-typing so far does not handle passwords containing spaces
correctly. The attached patch fixes this issue. Would be nice if it was
applied.

Cheers,
Johannes
From 8cb7a245e646111b04ef31ac26ada291251cf09a Mon Sep 17 00:00:00 2001
From: Johannes Wienke <[email protected]>
Date: Sat, 16 May 2015 16:26:21 +0200
Subject: [PATCH] passmenu auto-type: handle spaces in passwords

Correctly escape passwords so that passwords containing spaces can be
auto-typed.
---
 contrib/dmenu/passmenu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/dmenu/passmenu b/contrib/dmenu/passmenu
index a0da173..5be676d 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)"
+	xdotool - <<<"type --clearmodifiers -- '$(pass show "$password" | head -n 1)'"
 fi
-- 
2.4.1

_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to