When systemd does this
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
After=xdg-desktop-autostart.target
[Service]
Type=forking
ExecStart=/home/user_name/.nix-profile/bin/emacs --daemon
ExecStop=/home/user_name/.nix-profile/bin/emacsclient --eval "(kill-emacs)"
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Environment=COLORTERM=truecolor
Environmont=TERM=xterm-256color
Restart=on-failure
[Install]
WantedBy=default.target
When systemd runs this service, the emacs clipboard does not work, but after restarting it alfer haling login, the clipborad is working, ergo it should run after some service but I don’t know which