From 7c55bedd58dd89b5f2268babfd52fbe6b279f3f3 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sat, 11 Jul 2020 18:40:15 +0100 Subject: [PATCH] Enable support for Emacs versions without --fg-daemon --- roles/home-gui/templates/emacs.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/home-gui/templates/emacs.service b/roles/home-gui/templates/emacs.service index e0e23f9..e2acf20 100644 --- a/roles/home-gui/templates/emacs.service +++ b/roles/home-gui/templates/emacs.service @@ -7,8 +7,8 @@ Description=Emacs text editor Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ [Service] -Type=simple -ExecStart={{ prefix }}/bin/emacs --fg-daemon +Type=forking +ExecStart={{ prefix }}/bin/emacs --daemon ExecStop={{ prefix }}/bin/emacsclient --eval "(kill-emacs)" Environment=SSH_AUTH_SOCK=%t/keyring/ssh Restart=on-failure