Where is ssh-agent launched on 13.1 with KDE

I want to use GnuPG’s ssh-agent implementation, so I need to find a way to not have ssh-agent launched with KDE.

How does ssh-agent get launched?


$ ps -eF |grep ssh
user    2124  2017  0  2697   688   1 Mar07 ?        00:00:00 /usr/bin/ck-launch-session /usr/bin/gpg-agent --sh --daemon --write-env-file /home/user/.gnupg/agent.info /usr/bin/ssh-agent /etc/X11/xinit/xinitrc
user    2272  2271  0  4264  1000   0 Mar07 ?        00:00:09 /usr/bin/gpg-agent --sh --daemon --write-env-file /home/user/.gnupg/agent.info /usr/bin/ssh-agent /etc/X11/xinit/xinitrc
user    2274  2271  0  3141   500   2 Mar07 ?        00:00:01 /usr/bin/ssh-agent /etc/X11/xinit/xinitrc

The parent PID 2271 points to startkde, in which I could only find a comment recommending to start ssh-agent and gpg-agent via a script in /usr/share/kde4/env or ~/.kde4/env but no luck there. Also, ck-launch-session seems to be part of ConsoleKit, I thought that had been phased out? :dont-know:

What am I missing? Thanks!

I’m not sure.

I seem to recall that it was launched in “startkde”, but that would have been for opensuse 11.4 or thereabouts.

For what you want to do, I don’t think it matters. I’m pretty that your “.profile” is run before anything else in the session (or your “.cshrc” and “.login” if you are a “csh” user).

Try starting “gpg-agent” there, with the parameters for it to handle ssh-agent requests. And then, if they did it right, whatever normally starts “ssh-agent” and “gpg-agent” will note that it is already running and not start another.

That’s at least worth trying.

On 2014-03-13 14:36, lorenzo3000 wrote:
>
> I want to use GnuPG’s ssh-agent implementation, so I need to find a
> way to not have ssh-agent launched with KDE.
>
> How does ssh-agent get launched?

Have a look at “sytemsettings”, section “startup and shutdown”.
Apparently it controls what is started automatically.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)