[pkg-gnupg-maint] Bug#795368: gnupg-agent: Fails to function as a SSH agent with smartcard

Raphael Hertzog hertzog at debian.org
Tue Sep 1 14:35:10 UTC 2015


Hello,

On Sun, 30 Aug 2015, Raphael Hertzog wrote:
> I don't know what's the proper fix is for this...
> 
> But I would suggest at least:
> 1/ to improve /usr/bin/pinentry-gnome3 to reinject the DISPLAY variable
>    so that the DBUS auto-launch works again

I tried this, but it did not seem to help.

> 2/ possibly reconsider the way the gpg-agent is started so that it's
>    part of the user session ? (I noticed that closing the graphical
>    session did not close the gpg-agent)

Alternatively we can also reconsider how the DBus user session is started
and I just learnt that we have a dbus-user-session package that does it
differently.  It's currently only in experimental but will soon move to
unstable (once the C++ transition is over).

It adds /etc/X11/Xsession.d/20dbus_xdg-runtime and sets the environment
variable before gpg-agent is started (beware you need to upgrade dbus-x11
at the same time, it's currently missing a Breaks).

So a possible fix to this would be to make pinentry-gnome3 depend
on dbus-user-session... BTW I heard that pinentry-qt4 might need the same
but I did not check.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/



More information about the pkg-gnupg-maint mailing list