Skip to content

Revert "gcr-ssh-agent.socket: set `SSH_AUTH_SOCK`"

Mike Yuan requested to merge YHNdnzj/gcr:revert-ssh-auth-sock into master

This reverts commit b12cc639.

First of all, gcr is not the only provider of ssh-agent, so it makes no sense to set the env by default. gnome-keyring users are allowed to use ssh-agent or gpg-agent to provide ssh-agent functionality.

Secondly, this is not the right place to set user manager env. 'systemctl set-environment' overrides what's set through environment.d/. It also subjects to race with desktop sessions that import session env into manager.

Merge request reports