Hi, On Fri, Jul 03, 2015 at 10:43:34PM +0200, Michael Biebl wrote: > […] > a/ without a running gpg-agent, gpg v2 doesn't cache any passwords. It > spawns a gpg-agent process on demand, so we at least get a > pinentry-gnome3 based prompt. > > b/ without "use-agent", gpg v1 will also not use gpg-agent/pinentry-gnome3 > at all, but fall back to prompt directly on the console. > > Regarding gpg v2 I'm surprised that "use-agent" is still necessary. > At least "man gpg2" says that --use-agent is a dummy, since gnupg agent > is mandatory > > Any clever idea how we can address this? Should we start gpg-agent > unconditionally in /etc/X11/Xsession.d/90gpg-agent? This would at least > address a/.
The suggestion I came up with during our discussion on IRC the other day is to install another Xsession.d snippet in gnupg2 which does something like # source PID_FILE? if [ -z ${GPG_AGENT_INFO} ]; then # start the agent fi and is ordered after gnupg-agent's one. That is: if we've got gpg2 installed then always start the agent, otherwise if we've only got gpg1 installed then start it only if we have 'use-agent' in the config file. Would that work? Cheers, -- Iain Lane [ i...@orangesquash.org.uk ] Debian Developer [ la...@debian.org ] Ubuntu Developer [ la...@ubuntu.com ]
signature.asc
Description: Digital signature