It turns out that this works if the --no-use-agent switch is used. This wasn't clear to me from the documentation.
On Mon, Jan 13, 2014 at 2:05 PM, Andrew Kane <[email protected]> wrote: > Package: gnupg2 > Version: 2.0.22-3 > Severity: normal > > Dear Maintainer, > *** Please consider answering these questions, where appropriate *** > > * What led up to the situation? > > Writing a script to sign arbitrary selections, I use zenity to retrieve a > string from the user to be passed to gpg2 as passphrase. > This is because the script needs to be launched from a hotkey in X and gpg's > passphrase dialog does not work in this context. > > * What exactly did you do (or not do) that was effective (or > ineffective)? > > In testing the script I ran the following from xfce4-terminal: > > gpg -s --batch --no-tty --passphrase [my gpg passphrase] > > * What was the outcome of this action? > > the normal passphrase prompt window popped up. > > * What outcome did you expect instead? > > I expected that gpg should proceed as normal except omitting the passphrase > prompt as one had been provided by --passphrase per the manual. > > > > -- System Information: > Debian Release: jessie/sid > APT prefers testing-updates > APT policy: (500, 'testing-updates'), (500, 'testing-proposed-updates'), > (500, 'testing'), (1, 'experimental') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores) > Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/bash > > Versions of packages gnupg2 depends on: > ii dpkg 1.17.5 > ii gnupg-agent 2.0.22-3 > ii install-info 5.2.0.dfsg.1-2 > ii libassuan0 2.1.1-1 > ii libbz2-1.0 1.0.6-5 > ii libc6 2.17-97 > ii libcurl3-gnutls 7.34.0-1 > ii libgcrypt11 1.5.3-3 > ii libgpg-error0 1.12-0.2 > ii libksba8 1.3.0-3 > ii libreadline6 6.2+dfsg-0.1 > ii zlib1g 1:1.2.8.dfsg-1 > > Versions of packages gnupg2 recommends: > ii libldap-2.4-2 2.4.31-1+nmu2+b1 > > Versions of packages gnupg2 suggests: > ii gnupg-doc 2003.04.06+dak1-1 > pn xloadimage <none> > > -- no debconf information -- Helping Seattle's Needy Get Nerdy http://freegeekseattle.org/wiki/index.php/Free_Geek_Seattle:About http://freegeekseattle.org/wiki/index.php/Projects Maillist: https://groups.google.com/forum/?fromgroups#!forum/freegeek-seattle IRC: #freegeek-sea on freenode freegeekseattle.org -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

