Add way to propagate SSH_AUTH_SOCK
Currently gcr-ssh-agent lacks support for properly setting SSH_AUTH_SOCK in user session. A couple of ways have been proposed for this:
- Install a file in
/etc/profile.d
- Install an XDG autostart file that executes
sh -c "busctl call --user org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager Setenv 'ss' SSH_AUTH_SOCK $XDG_RUNTIME_DIR/gcr/ssh"
From the compatibility point of view (with other DEs), the latter approach seems to be safer.