Subject: bug#37847: [PATCH] Improve client/daemon xdg/systemd experience

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 09 Sep 2020 11:35:37 +0200

Vojtech Stepancik <[email-masked]> writes:

> When started as a systemd service, the `invocation-name' of the server
> process is `emacsd', which is not indicative of the way the process
> was launched.
>
> For example Flycheck tries to use this variable to compile elisp code
> with the same version of Emacs as the one being used. I'm sure there
> are others.

Would reverting this bit of the patch fix the problem?

 [Service]
 Type=notify
-ExecStart=emacs --fg-daemon
+ExecStart=@emacs emacsd --fg-daemon
 ExecStop=emacsclient --eval "(kill-emacs)"

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no