New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emacs daemon doesn't see SSH_AUTH_SOCK from gnupg #55733
Comments
Does |
The root cause is clear: the above PR swapped |
`SSH_AUTH_SOCK` is useful in some non-interactive settings, for instance daemonized Emacs. Fixes NixOS#55733.
PR to fix open at #56254, does that seem like a reasonable approach? |
Issue description
Since #48772, emacs run through
services.emacs
doesn't seeSSH_AUTH_SOCK
set byprograms.gnupg.agent.enableSSHSupport
. This is problematic because packages like magit will not use the correct SSH agent.SSH_AUTH_SOCK
does work correctly in 18.09; this is a regression onmaster
.Steps to reproduce
emacsclient -e '(getenv "SSH_AUTH_SOCK")'
The result will be
nil
. (Note that if you startemacs
from a shell and evaluate the above expression, the result will be correct.)Technical details
"x86_64-linux"
Linux 4.19.20, NixOS, 19.03pre169108.36f31600749 (Koi)
yes
yes
nix-env (Nix) 2.2
"nixos-19.03pre169108.36f31600749"
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: