Update systemd service file
authorJoerg Jaspert <joerg@debian.org>
Sun, 10 Dec 2017 14:50:38 +0000 (15:50 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sun, 10 Dec 2017 14:50:38 +0000 (15:50 +0100)
.config/systemd/user/emacs.service

index bc5bb01..9ea85e0 100644 (file)
@@ -6,9 +6,9 @@ ConditionHost=|linwsa03
 Requires=graphical-session.target
 
 [Service]
 Requires=graphical-session.target
 
 [Service]
-Type=forking
+Type=simple
 ExecStartPre=/bin/rm -f %h/.emacs.d/cache/.emacs.desktop.lock
 ExecStartPre=/bin/rm -f %h/.emacs.d/cache/.emacs.desktop.lock
-ExecStart=/usr/bin/emacs --daemon
+ExecStart=/usr/bin/emacs --fg-daemon
 ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook nil) (save-buffers-kill-emacs))"
 Environment=TMPDIR=/run/user/1000/tmp
 Environment=DISPLAY=:%i
 ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook nil) (save-buffers-kill-emacs))"
 Environment=TMPDIR=/run/user/1000/tmp
 Environment=DISPLAY=:%i