<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I installed GPG from here: <a href="https://gpgtools.org/" class="">https://gpgtools.org/</a><div class="">The gpg-agent.conf looks like this:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><b class="">$</b> cat gpg-agent.conf</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">default-cache-ttl 600</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">max-cache-ttl 7200</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">pinentry-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px;" class="">I tried changing it to:</div><div style="margin: 0px;" class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">pinentry-program /usr/local/bin/pinentry-mac</div><div class=""><br class=""></div></div><div style="margin: 0px;" class="">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. </div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">/Ivan</div><div style="margin: 0px;" class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 21 Sep 2015, at 15:13, Steffen Vogel <<a href="mailto:post@steffenvogel.de" class="">post@steffenvogel.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">I’m using this Applescript with the pin entry program of GPGTools.<br class=""><br class="">Btw. I’m still waiting to get my patches for the next version of pass.applescript merged.<br class="">Have a look at mailing list archive for those…<br class=""><br class="">Steffen<br class=""><br class=""><br class=""><blockquote type="cite" class="">Am 21.09.2015 um 14:42 schrieb Mateusz Lenik <<a href="mailto:mlen@mlen.pl" class="">mlen@mlen.pl</a>>:<br class=""><br class="">On Mon, Sep 21, 2015 at 12:14:55PM +0200, Ivan Pedersen wrote:<br class=""><blockquote type="cite" class="">Hi,<br class=""><br class="">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 href="http://git.zx2c4.com/password-store/tree/contrib/pass.applescript" class="">http://git.zx2c4.com/password-store/tree/contrib/pass.applescript</a> <<a href="http://git.zx2c4.com/password-store/tree/contrib/pass.applescript" class="">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 class=""><br class=""><br class=""><br class="">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 class=""><br class="">Anyone here had this problem or can help me with it?<br class=""><br class="">/Ivan<br class=""><br class=""><br class=""></blockquote><br class="">First off, did you install GPG via homebrew or from <a href="http://gpgtools.org" class="">gpgtools.org</a>?<br class=""><br class="">I suspect you have used the former and in this case I'd suggest<br class="">installing pinentry-mac formula and configuring GPG to use it.<br class=""><br class=""><br class="">Broader explanation: GPG by default uses pinentry that came with it.<br class="">This program requires a tty to be able to read the password for the key<br class="">in, while the script you linked runs pass without terminal. In this case<br class="">pinentry doesn't know which tty to use and tries the default one.<br class="">That fails, so the decryption fails too.<br class=""><br class="">--<br class="">Mateusz Lenik<br class="">PGP B865 E86A D36C 11A5 C1F8  C1D9 AAD4 CEC9 6B94 92C4<br class="">_______________________________________________<br class="">Password-Store mailing list<br class=""><a href="mailto:Password-Store@lists.zx2c4.com" class="">Password-Store@lists.zx2c4.com</a><br class="">http://lists.zx2c4.com/mailman/listinfo/password-store<br class=""></blockquote><br class=""><br class=""><br class="">—<br class=""><br class="">Steffen Vogel<br class="">Robensstraße 69<br class="">52070 Aachen<br class=""><br class="">Mail: <a href="mailto:post@steffenvogel.de" class="">post@steffenvogel.de</a><br class="">Mobil: +49 1575 7180927<br class="">Web: <a href="http://www.steffenvogel.de" class="">http://www.steffenvogel.de</a><br class="">Jabber: <a href="mailto:steffen.vogel@jabber.rwth-aachen.de" class="">steffen.vogel@jabber.rwth-aachen.de</a><br class=""><br class="">_______________________________________________<br class="">Password-Store mailing list<br class=""><a href="mailto:Password-Store@lists.zx2c4.com" class="">Password-Store@lists.zx2c4.com</a><br class="">http://lists.zx2c4.com/mailman/listinfo/password-store<br class=""></div></blockquote></div><br class=""></body></html>