Re: user xsession or how to start ssh-add
On Sun, Mar 03, 2002 at 07:44:46PM +0100, Balazs Javor wrote:
> How do I start ssh-add when X starts to add my key to the agent?
> (Agent is already running?)
Well, if you're using Gnome, you can just add ssh-add to the list of
programs to run at startup. It's in the gnome control center, in the
section 'session properties and startup programs'. KDE probably has
something similar. You will need to have a helper program that will
actually let you type the password, such as ssh-askpass-gnome.
> I've tried to figure out what exactly happens when I do a startx,
> and followed several of the config files in /etc/X11/. I think
> I generally understood the concept of the xsession.d dir, which
> is pretty neat, but very hard to read...
> In Xsession.options I have the allow-user-xsession, so I was hoping
> that when I create a .xsession with the line
> ssh-add &
> it would be merged somehow to the rest.
> Well X didn't even start...
No, AFAIK, if you want to use ~/.xsession, you have to put everything to
start X in there. It will bypass the system default completely. Can't
help you any further with that option.
Note that I use Debian version 3.0
Linux mus 2.4.17mvz2 #1 Wed Feb 27 17:41:43 CET 2002 i686 unknown