Erwan, maybe you forgot to do disable/enable cycle after adjusting
"[Install]" section of the unit configuration.
systemctl --user list-dependencies --reverse emacs.service
On 30/08/2024 19:19, Greg Wooledge wrote:
It's amazing how badly the systemd folks managed to break *everything*.
I'm pretty old-fashioned. I use startx from a console login, and I
configure it with a ~/.xsession file which overrides the Debian stuff.
I have no idea if it is intentional, but emacs.service is not specific
to graphical sessions. By default (when enabled) it is started even in
the case of e.g. ssh login. So you may use single emacs daemon instance
having multiple simultaneous logins. It is stopped on last logout.
ssh-agent may be started after emacs and it is possible to notify emacs
where is current agent socket.
Concerning graphical sessions, when you click in a browser on a link to
download a document that should be opened in LibreOffice, should it
inherit environment from browser or should it be started with clean
session environment? What if the browser is running in a highly isolated
sandbox and there is no LibreOffice in the accessible part of its
filesystem? So some intermediate instance that can handle requests to
launch other applications becomes necessary. Of course, new
possibilities add some complexity.