You are not logged in.
With my current setup (LXDM, systemd), ssh-agent and emacs daemon are brutally murdered (SIGKILL I suppose) since their sockets remain on disk.
I don't think this is the correct behaviour, or am I missing something?
This does not happen if I login from a TTY, startx with a bare .xinitrc and do my things.
In case of a TTY login, a simple trap will do to clean up the session, e.g. for ssh-agent:
trap "ssh-agent -k" 0
The issue also occurs, however, when logged from a TTY and the following command is found in .xinitrc:
systemctl --user import-environment DISPLAY XAUTHORITY
So I guess this issue is systemd-related. I'm afraid I'm no systemd guru... Can anybody confirm this?
Offline