<div>Tried to apply the patches, still the same issue plus that I get some error messages. Not sure I did it right so I attached the script that I now use. <br /></div><div><br /></div><div>When I run it from the services menu in terminal I get this error after the same dev/tty error as before: <br /></div><div><img src="cid:BA2A528B-B7F6-47F8-B4A8-4174BE49C9CF" width="350" height="131.76" /><br /></div><div><br /></div><div>If I run it from inside Automator I get "pw is not defined"<br /></div><div><img src="cid:F5807724-1E6A-496A-A086-1CBC8CA720D9" width="350" height="113.97" /><br /></div><div><br /></div><div>My PATH looks like this: <br /></div><p class="p1"><span class="s1">echo $PATH</span><br /></p><p class="p1"><span class="s1">/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin</span><br /></p><div><br /></div><div>/Ivan</div><p>On 21 September 2015 21:11:03 +02:00, Steffen Vogel <post@steffenvogel.de> wrote:<br /></p><blockquote type="cite"><div class="oneComWebmail-mail"><div class="oneComWebmail-body"><div>Try to check if pass.applescript is actually using the correct GPG executable.<br /></div><div>You might have to change the PATH variable inside pass.applescript.<br /></div><div>I had the problem once, that pass.applescript was using GPG from my MacPorts installation.<br /></div><div><br /></div><div>Did you applied the newest patches from the mailing list? I changed some stuff which might affect your problem..<br /></div><div><br /></div><div>Cheers,<br /></div><div><br /></div><div>—<br /></div><div><br /></div><div>Steffen Vogel<br /></div><div>Robensstraße 69<br /></div><div>52070 Aachen<br /></div><div><br /></div><div>Mail: <a href="mailto:post@steffenvogel.de">post@steffenvogel.de</a><br /></div><div>Mobil: +49 1575 7180927<br /></div><div>Web: <a target="_blank" href="http://www.steffenvogel.de">http://www.steffenvogel.de</a><br /></div><div>Jabber: <a href="mailto:steffen.vogel@jabber.rwth-aachen.de">steffen.vogel@jabber.rwth-aachen.de</a><br /></div><div><br /></div><blockquote><div>Am 21.09.2015 um 17:43 schrieb Ivan Pedersen <<a href="mailto:ivan@alpe.se">ivan@alpe.se</a>>:<br /></div><div><br /></div><div>I installed GPG from here: <a target="_blank" href="https://gpgtools.org/">https://gpgtools.org/</a><br /></div><div>The gpg-agent.conf looks like this:<br /></div><div><br /></div><div>$ cat gpg-agent.conf<br /></div><div><br /></div><div>default-cache-ttl 600<br /></div><div>max-cache-ttl 7200<br /></div><div>pinentry-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac<br /></div><div><br /></div><div>I tried changing it to:<br /></div><div>pinentry-program /usr/local/bin/pinentry-mac<br /></div><div><br /></div><div>But it does not make any difference. They actually the same thing I guess? I don’t know much about these things but I recognise the pinentry-mac gui from earlier so it’s using that when signing and encrypting emails for example.<br /></div><div><br /></div><div><br /></div><div>/Ivan<br /></div><div><br /></div><blockquote><div>On 21 Sep 2015, at 15:13, Steffen Vogel <<a href="mailto:post@steffenvogel.de">post@steffenvogel.de</a>> wrote:<br /></div><div><br /></div><div>I’m using this Applescript with the pin entry program of GPGTools.<br /></div><div><br /></div><div>Btw. I’m still waiting to get my patches for the next version of pass.applescript merged.<br /></div><div>Have a look at mailing list archive for those…<br /></div><div><br /></div><div>Steffen<br /></div><div><br /></div><div><br /></div><blockquote><div>Am 21.09.2015 um 14:42 schrieb Mateusz Lenik <<a href="mailto:mlen@mlen.pl">mlen@mlen.pl</a>>:<br /></div><div><br /></div><div>On Mon, Sep 21, 2015 at 12:14:55PM +0200, Ivan Pedersen wrote:<br /></div><blockquote><div>Hi,<br /></div><div><br /></div><div>I wanted to start using the OS X integration but I can’t get it to work. I use the script from here (Thanks Steffen) <a target="_blank" href="http://git.zx2c4.com/password-store/tree/contrib/pass.applescript">http://git.zx2c4.com/password-store/tree/contrib/pass.applescript</a> <<a target="_blank" href="http://git.zx2c4.com/password-store/tree/contrib/pass.applescript">http://git.zx2c4.com/password-store/tree/contrib/pass.applescript</a>> and have added the notification and shortcut to the service. But whenever I try to fetch a key i get this error message: "gpg: cannot open `/dev/tty': Device not configured”.<br /></div><div><br /></div><div><br /></div><div><br /></div><div>I only get it when trying to get a key that actually exists in the store, otherwise i get "Error: root is not in the password store.” for example.<br /></div><div><br /></div><div>Anyone here had this problem or can help me with it?<br /></div><div><br /></div><div>/Ivan<br /></div><div><br /></div></blockquote><div><br /></div><div>First off, did you install GPG via homebrew or from gpgtools.org?<br /></div><div><br /></div><div>I suspect you have used the former and in this case I'd suggest<br /></div><div>installing pinentry-mac formula and configuring GPG to use it.<br /></div><div><br /></div><div><br /></div><div>Broader explanation: GPG by default uses pinentry that came with it.<br /></div><div>This program requires a tty to be able to read the password for the key<br /></div><div>in, while the script you linked runs pass without terminal. In this case<br /></div><div>pinentry doesn't know which tty to use and tries the default one.<br /></div><div>That fails, so the decryption fails too.<br /></div><div><br /></div><div>--<br /></div><div>Mateusz Lenik<br /></div><div>PGP B865 E86A D36C 11A5 C1F8  C1D9 AAD4 CEC9 6B94 92C4<br /></div><div>_______________________________________________<br /></div><div>Password-Store mailing list<br /></div><div>Password-Store@lists.zx2c4.com<br /></div><div><a target="_blank" href="http://lists.zx2c4.com/mailman/listinfo/password-store">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br /></div></blockquote><div><br /></div><div><br /></div><div><br /></div><div>—<br /></div><div><br /></div><div>Steffen Vogel<br /></div><div>Robensstraße 69<br /></div><div>52070 Aachen<br /></div><div><br /></div><div>Mail: <a href="mailto:post@steffenvogel.de">post@steffenvogel.de</a><br /></div><div>Mobil: +49 1575 7180927<br /></div><div>Web: <a target="_blank" href="http://www.steffenvogel.de">http://www.steffenvogel.de</a><br /></div><div>Jabber: <a href="mailto:steffen.vogel@jabber.rwth-aachen.de">steffen.vogel@jabber.rwth-aachen.de</a><br /></div><div><br /></div><div>_______________________________________________<br /></div><div>Password-Store mailing list<br /></div><div>Password-Store@lists.zx2c4.com<br /></div><div><a target="_blank" href="http://lists.zx2c4.com/mailman/listinfo/password-store">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br /></div></blockquote><div><br /></div><div>_______________________________________________<br /></div><div>Password-Store mailing list<br /></div><div>Password-Store@lists.zx2c4.com<br /></div><div><a target="_blank" href="http://lists.zx2c4.com/mailman/listinfo/password-store">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br /></div></blockquote></div></div><div class="oneComWebmail-mail"><div class="oneComWebmail-body"><div>_______________________________________________<br /></div><div>Password-Store mailing list<br /></div><div>Password-Store@lists.zx2c4.com<br /></div><div><a target="_blank" href="http://lists.zx2c4.com/mailman/listinfo/password-store">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br /></div></div></div></blockquote><div><br /></div>