Update systemd service file
[emacs.git] / .config / systemd / user / emacs.service
index bc5bb01..9ea85e0 100644 (file)
@@ -6,9 +6,9 @@ ConditionHost=|linwsa03
 Requires=graphical-session.target
 
 [Service]
-Type=forking
+Type=simple
 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