unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27620: systemd environment SSH_AUTH_SOCK in emacs.service
@ 2017-07-08 15:44 Alex Branham
  2019-07-21 15:12 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Branham @ 2017-07-08 15:44 UTC (permalink / raw)
  To: 27620

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#27620: systemd environment SSH_AUTH_SOCK in emacs.service
  2017-07-08 15:44 bug#27620: systemd environment SSH_AUTH_SOCK in emacs.service Alex Branham
@ 2019-07-21 15:12 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-21 15:12 UTC (permalink / raw)
  To: Alex Branham; +Cc: 27620

Alex Branham <alex.branham@gmail.com> writes:

> 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?

I've now commented it out on the Emacs trunk, and added a comment saying
why.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-21 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-08 15:44 bug#27620: systemd environment SSH_AUTH_SOCK in emacs.service Alex Branham
2019-07-21 15:12 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).