[pkg-gnupg-maint] Bug#855868: Bug#855868: GPG_AGENT_INFO and SSH_AUTH_SOCK not set in wayland sessions

Raphael Hertzog hertzog at debian.org
Mon Aug 21 13:18:30 UTC 2017


Hello,

On Sun, 30 Jul 2017, rufo wrote:
> Perhaps the solution might involve using systemd's
> environment-generators [1].  This seems to be the new preferred way to
> set environmental variables like SSH_AUTH_SOCK and the replacement for
> putting scripts in /etc/X11/Xsession.d/.
> 
> For example the gnupg-agent package could create the file
> /usr/lib/systemd/user-environment-generators/90gpg-agent containing
> something like this:
> 
> #!/bin/bash
> 
> if [ -n "$(gpgconf --list-options gpg-agent | \
>       awk -F: '/^enable-ssh-support:/{ print $10 }')" ]; then
>     echo SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
> fi
> 
> This is what I'm using at the moment and it seems to work well.  What do
> you think?

I agree it looks like a good solution. Daniel, can you implement this
please?

Debian Unstable now defaults to Wayland for GNOME users and it would be
nice to have SSH agent working out of the box again.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

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



More information about the pkg-gnupg-maint mailing list