View Single Post
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#4
Originally Posted by nyarlathotep View Post
I'd suggest starting the ssh-agent before X because otherwise tasks spawned outside a shell don't have access.
A good thought. I've added /etc/X11/Xsession.d/00ssh-agent containing:
Code:
#!/bin/sh
eval `ssh-agent -s -t 900`
That seems to do the job of starting the agent along with X, making the environment variables accessible to all launched applications.
 

The Following 4 Users Say Thank You to Rob1n For This Useful Post: