Allow lennier
[emacs.git] / .config / systemd / user / emacs.service
1 [Unit]
2 Description=Emacs: the extensible, self-documenting text editor
3 PartOf=xlogin.target
4 ConditionHost=|delenn.ganneff.de
5 ConditionHost=|linwsa03
6 ConditionHost=|lennier
7 Requires=graphical-session.target
8
9 [Service]
10 Type=simple
11 ExecStartPre=/bin/rm -f %h/.emacs.d/cache/.emacs.desktop.lock
12 ExecStart=/usr/bin/emacs --fg-daemon
13 ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook nil) (save-buffers-kill-emacs))"
14 Environment=TMPDIR=/run/user/1000/tmp
15 Environment=DISPLAY=:%i
16 Environment=SSH_AUTH_SOCK=/run/user/1000/gnupg/S.gpg-agent.ssh
17 Restart=on-failure
18 TimeoutStartSec=0
19 SuccessExitStatus=0 1 15
20
21 [Install]
22 WantedBy=default.target
23 WantedBy=graphical-session.target
24 WantedBy=xlogin.target