[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: running a program on x logout



On Mon, 28 Jul 1997, Jens B. Jorgensen wrote:
[edited]
> robert havoc pennington wrote:
> >  I want to run a program when I log out of my X session (specifically,
> > "kill $SSH_AGENT_PID") and I can't figure out how.
> Then make your ~/.xsession as:
> #!/bin/bash
> exec /usr/bin/ssh-agent /usr/X11R6/bin/fvwm2
> Then when you exit it will go away all by itself! I assume that 
> currently your starting it in your fvwm InitFunction. Rather,
> in your InitFunction you can run ssh-add, which will pop up a nice
> little window first thing.

Hmm. The new problem, doing it this way, is that I can't run 
ssh -f remotehost xbiff 
in any of the fvwm2 startup files, because it tries to run before I can
type in the pass phrase for ssh-add. I was doing this in .xsession:
ssh-agent
ssh-add
exec fvwm2
which waits for ssh-add to finish getting the pass phrase, then runs
fvwm2, and works fine except that ssh-agent won't quit at the end of the
session.
if I exec ssh-agent fvwm2, then have ssh-add and ssh both in the startup
files (InitFunction or elsewhere), I get two pass phrase requests.
I can't figure out any way to tell fvwm2 to wait for ssh-add to finish
before continuing. It can wait for a window to appear, but that's the only
kind of wait it seems to be able to do, as far as I can tell.

Ideas?

Havoc Pennington




--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: