Re: Don't get the pinentry for passphrase in some contexts

2017-07-19 Thread Damien Cassou
Werner Koch writes: > "debug-pinentry" in gpg-agent.conf would give you more info. Adding > also "debug ipc" will show you the communication between gpg and > gpg-agent; that is what you strace shows. Use "log-file FILE" to set a > log file and remember to reload gpg-agent. I tried this config

Re: Don't get the pinentry for passphrase in some contexts

2017-07-13 Thread Damien Cassou
Matthias Apitz writes: > What do you use as pinentry exactly? I have: > > $ ls -l /usr/local/bin/pinentry > lrwxr-xr-x 1 root wheel 27 15 may. 14:04 /usr/local/bin/pinentry -> > /usr/local/bin/pinentry-qt5 > > and this pops up a Qt5 window for this. For me, /usr/bin/pinentry is a 86-lines sh

Re: Don't get the pinentry for passphrase in some contexts

2017-07-13 Thread Werner Koch
On Thu, 13 Jul 2017 15:08, dam...@cassou.me said: > strace reveals the following. Does that ring a bell to anyone? "debug-pinentry" in gpg-agent.conf would give you more info. Adding also "debug ipc" will show you the communication between gpg and gpg-agent; that is what you strace shows. Use "l

Re: Don't get the pinentry for passphrase in some contexts

2017-07-13 Thread Damien Cassou
strace reveals the following. Does that ring a bell to anyone? In Firefox read(5, "INQUIRE PINENTRY_LAUNCHED 22712\n", 1002) = 32 write(5, "END", 3)= 3 write(5, "\n", 1) = 1 read(5, "ERR 83886179 Operation cancelled \n", 1002) = 44 In the terminal

Don't get the pinentry for passphrase in some contexts

2017-07-12 Thread Damien Cassou
Hi, I have the attached application below that just tries to decrypt a file with gpg2. When the gpg-agent has an empty cache (I temporarily set max-cache-ttl to 0 while testing), the application has different behavior when ran from a terminal or from a Firefox add-on: 1- in the terminal, I get th