Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #272588

Re: emacs service and session start

From Erwan David <erwan@rail.eu.org>
Newsgroups linux.debian.user
Subject Re: emacs service and session start
Date 2024-08-26 13:40 +0200
Message-ID <JfGeJ-7KDF-11@gated-at.bofh.it> (permalink)
References (1 earlier) <JeyCB-6ZRp-3@gated-at.bofh.it> <JeFb3-73UA-1@gated-at.bofh.it> <JeFup-741g-9@gated-at.bofh.it> <JfbXj-7rnD-3@gated-at.bofh.it> <JfCXw-7IBJ-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Aug 26, 2024 at 10:08:49AM CEST, Erwan David <erwan@rail.eu.org> said:
> On Sun, Aug 25, 2024 at 05:17:35AM CEST, Max Nikulin <manikulin@gmail.com> said:
> > On 23/08/2024 23:30, Max Nikulin wrote:
> > > On 23/08/2024 23:09, Erwan David wrote:
> > > > Ok, it could work, ilf only ssh-agent was not started with a random
> > > > socket name...
> > > > 
> > > > And I do not see what starts it (I see the process ssh-agent
> > > > /usr/bin/startplasma-x11 but I did not find which service starts it)
> > > 
> > > It is started by /etc/X11/Xsession.d/90x11-common_ssh-agent
> > > The question is why emacs.service is started before
> > > /usr/lib/openssh/agent-launch or plasma copies SSH_AUTH_SOCKET value to
> > > systemd environment.
> > 
> > Looking into "journalctl --user -b" and checking environment of processes
> > started before and after "Started dbus.service - D-Bus User Message Bus.",
> > it should be enough to add a drop-in for emacs.service with
> > 
> > After=dbus.service
> > Wants=dbus.service
> > 
> > or Requires instead of Wants.
> > 
> > emacs.service may be started lazily by adding emacs.socket. However unit
> > dependency should be explicitly set anyway.
> 
> Thanks, I'll try it (and if it works, I'll do a reportbug so that the
> unit in the package is modified)

Alas it does not work. I disabled the service, and added a systemctl
--user start emacs at session start.

This works

PS: It works on a testing, so there may be a difference

-- 
Erwan David

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

emacs service and session start Erwan David <erwan@rail.eu.org> - 2024-08-23 10:10 +0200
  Re: emacs service and session start didier gaumet <didier.gaumet@gmail.com> - 2024-08-23 11:20 +0200
    Re: emacs service and session start Erwan David <erwan@rail.eu.org> - 2024-08-23 11:40 +0200
    Re: emacs service and session start Erwan David <erwan@rail.eu.org> - 2024-08-23 18:20 +0200
      Re: emacs service and session start Max Nikulin <manikulin@gmail.com> - 2024-08-23 18:40 +0200
        Re: emacs service and session start Max Nikulin <manikulin@gmail.com> - 2024-08-25 05:20 +0200
          Re: emacs service and session start Erwan David <erwan@rail.eu.org> - 2024-08-26 10:10 +0200
            Re: emacs service and session start Erwan David <erwan@rail.eu.org> - 2024-08-26 13:40 +0200
              Re: emacs service and session start Max Nikulin <manikulin@gmail.com> - 2024-08-26 18:20 +0200
                Re: emacs service and session start Erwan David <erwan@rail.eu.org> - 2024-08-29 08:00 +0200
                Re: emacs service and session start Max Nikulin <manikulin@gmail.com> - 2024-08-29 17:20 +0200
                Re: emacs service and session start Erwan David <erwan@rail.eu.org> - 2024-08-30 13:50 +0200
                Re: emacs service and session start Greg Wooledge <greg@wooledge.org> - 2024-08-30 14:20 +0200
                Re: emacs service and session start Max Nikulin <manikulin@gmail.com> - 2024-08-30 16:50 +0200
                Re: emacs service and session start Max Nikulin <manikulin@gmail.com> - 2024-08-30 14:40 +0200
                Re: emacs service and session start Erwan David <erwan@rail.eu.org> - 2024-08-30 15:30 +0200

csiph-web