[pass] [PATCH 1/2] only use first line for clipboard

Steffen Vogel post at steffenvogel.de
Fri Jul 24 09:47:35 CEST 2015


Hi Lenz,

sorry for my late reply and thanks for the hint!
I adjusted the patch as you mentioned.

Thanks

> .gpg-agent-info is deprecated in newer versions of GnuPG, so that should propably not end up there?
>
> https://www.gnupg.org/faq/whats-new-in-2.1.html

> > With GnuPG 2.1 the need of |GPG_AGENT_INFO| has been completely
> > removed and the variable is ignored.  Instead a fixed Unix domain
> > socket named |S.gpg-agent| in the GnuPG home directory (by default |> ~/.gnupg|) is used.  The agent is also started on demand by all tools
> > requiring services from the agent.

---
 contrib/pass.applescript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/pass.applescript b/contrib/pass.applescript
index 4720fff..9a2ad4f 100644
--- a/contrib/pass.applescript
+++ b/contrib/pass.applescript
@@ -45,7 +45,7 @@ end if
 
 try
 	set entity to the text returned of (display dialog nPrompt default answer defPass buttons {"OK"} with title nTitle default button 1)
-	set pw to do shell script "export PATH=" & shellPath & "; pass " & entity
+	set pw to do shell script "export PATH=" & shellPath & "; pass " & entity & " | head -n1"
 	
 	set the clipboard to pw
 	
-- 
2.3.0



More information about the Password-Store mailing list