Re: emacs service and session start

2024-08-30 Thread Max Nikulin
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 pr

Re: emacs service and session start

2024-08-30 Thread Erwan David
On Fri, Aug 30, 2024 at 02:30:32PM CEST, Max Nikulin said: > Have you checked that emacs.service is started at proper moment (journalctl > --user)? At first I did not add empty WantedBy and it caused earlier start > of ssh-agent.service instead of delay of emacs.service. > > It might be reasona

Re: emacs service and session start

2024-08-30 Thread Max Nikulin
On 30/08/2024 18:45, Erwan David wrote: On Thu, Aug 29, 2024 at 05:14:06PM CEST, Max Nikulin said: [Unit] After=dbus.service ssh-agent.service Wants=dbus.service ssh-agent.service [Install] WantedBy= WantedBy=graphical-session-pre.target [...] The after/wants does not work (starnge since ssh

Re: emacs service and session start

2024-08-30 Thread Greg Wooledge
On Fri, Aug 30, 2024 at 13:45:43 +0200, Erwan David wrote: > The after/wants does not work (starnge since ssh-agent.service seems > to see the SSH_AUTH_SOCK variable. > > But /etc/X11/Xsession.d/90x11-common_ssh-agent is a configuration file > and we can add SSHARGS. I added a > SSHARGS="-a $XDG_R

Re: emacs service and session start

2024-08-30 Thread Erwan David
On Thu, Aug 29, 2024 at 05:14:06PM CEST, Max Nikulin said: > On 29/08/2024 12:56, Erwan David wrote: > > On Mon, Aug 26, 2024 at 06:13:23PM CEST, Max Nikulin said: > > > > > > On 23/08/2024 23:30, Max Nikulin wrote: > > > > > > > It is started by /etc/X11/Xsession.d/90x11-common_ssh-agent > > > >

Re: emacs service and session start

2024-08-29 Thread Max Nikulin
On 29/08/2024 12:56, Erwan David wrote: On Mon, Aug 26, 2024 at 06:13:23PM CEST, Max Nikulin said: On 23/08/2024 23:30, Max Nikulin wrote: It is started by /etc/X11/Xsession.d/90x11-common_ssh-agent [Unit] After=dbus.service ssh-agent.service Wants=dbus.service ssh-agent.service [Install] Wan

Re: emacs service and session start

2024-08-28 Thread Erwan David
On Mon, Aug 26, 2024 at 06:13:23PM CEST, Max Nikulin said: > On 26/08/2024 18:37, Erwan David wrote: > > > > On 23/08/2024 23:30, Max Nikulin wrote: > > > > > > > > > > It is started by /etc/X11/Xsession.d/90x11-common_ssh-agent > > > > > The question is why emacs.service is started before > > >

Re: emacs service and session start

2024-08-26 Thread Max Nikulin
On 26/08/2024 18:37, Erwan David wrote: On 23/08/2024 23:30, Max Nikulin wrote: 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. [...] Al

Re: emacs service and session start

2024-08-26 Thread Erwan David
On Mon, Aug 26, 2024 at 10:08:49AM CEST, Erwan David said: > On Sun, Aug 25, 2024 at 05:17:35AM CEST, Max Nikulin > 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 > > > >

Re: emacs service and session start

2024-08-26 Thread Erwan David
On Sun, Aug 25, 2024 at 05:17:35AM CEST, Max Nikulin 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 pr

Re: emacs service and session start

2024-08-24 Thread Max Nikulin
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)

Re: emacs service and session start

2024-08-23 Thread Max Nikulin
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/90

Re: emacs service and session start

2024-08-23 Thread Erwan David
Le 23/08/2024 à 11:11, didier gaumet a écrit : Le 23/08/2024 à 10:08, Erwan David a écrit : I enabled the emacs user service (starts emacs as daemon). The ssh-agent is the one started by plasma. However, emacs (more exactly tram in emacs) does not see the ssh-agent. If I restart the emacs se

Re: emacs service and session start

2024-08-23 Thread Erwan David
On Fri, Aug 23, 2024 at 11:11:48AM CEST, didier gaumet said: > Le 23/08/2024 à 10:08, Erwan David a écrit : > > I enabled the emacs user service (starts emacs as daemon). The > > ssh-agent is the one started by plasma. However, emacs (more exactly > > tram in emacs) does not see the ssh-agent

Re: emacs service and session start

2024-08-23 Thread didier gaumet
Le 23/08/2024 à 10:08, Erwan David a écrit : I enabled the emacs user service (starts emacs as daemon). The ssh-agent is the one started by plasma. However, emacs (more exactly tram in emacs) does not see the ssh-agent. If I restart the emacs service once the session is on, it uses the ke

emacs service and session start

2024-08-23 Thread Erwan David
I enabled the emacs user service (starts emacs as daemon). The ssh-agent is the one started by plasma. However, emacs (more exactly tram in emacs) does not see the ssh-agent. If I restart the emacs service once the session is on, it uses the keys inside. What should I do to get correct orde