On Thu, 2013-06-13 at 06:22 +0100, Lars Wirzenius wrote: > > I suspect this is due to the fact that obnam is using the TTY > > and thus the TTY-based gpg-agent query dialog can't get the > > TTY to query for the password. > > > > Just running "gpg --sign" or so works fine and does query for > > the password. I could "pre-provision" the key, but then I'd > > also have to specify that it can never time out, otherwise > > obnam will fail in the middle of a long-running operation. > > I don't know how the non-gui gpg-agents work. If they require > access to the tty, you could try running Obnam with the --quiet > option. Does that work?
No, unfortunately not: # obnam --quiet .... ERROR: gpg: cancelled by user gpg: decryption failed: secret key not available It seems that inside screen, using gpg-agent's --keep-tty option seems to actually make it work. I'm pretty sure I tested the option before outside screen and it didn't work, but I haven't retested it. Generally though it seems that it expects to read the $GPG_TTY environment variable somehow ... not really sure how this is all supposed to work though. I guess for now I have a workaround, but it's a bit strange. johannes -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org