[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27620: systemd environment SSH_AUTH_SOCK in emacs.service
From: |
Alex Branham |
Subject: |
bug#27620: systemd environment SSH_AUTH_SOCK in emacs.service |
Date: |
Sat, 08 Jul 2017 17:44:05 +0200 |
User-agent: |
mu4e 0.9.18; emacs 25.2.1 |
Hello -
The systemd service file "etc/emacs.service" sets the environmental variable
SSH_AUTH_SOCK to "%t/keyring/ssh", which won't work for all users. I think
that's a GNOME-specific thing, maybe?
In any case, it overwrites values of SSH_AUTH_SOCK that the user actually sets
(in ~/.pam_environment, for example).
Would it be possible to remove that Environment line from the emacs.service
file? Instead of guessing at what the value should be, maybe consider adding in
the release notes or in the manual (if the systemd service has a section in the
manual) that users can set the value of SSH_AUTH_SOCK by either 1) setting it
session-wide in ~/.pam_environment, or 2) editing the emacs service file with
"systemctl --user edit emacs.service" and adding something like below
(replacing "%t/keyring/ssh" with the appropriate value):
[Service]
Environment="SSH_AUTH_SOCK=%t/keyring/ssh"
Thanks,
Alex
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#27620: systemd environment SSH_AUTH_SOCK in emacs.service,
Alex Branham <=