|And my original problem is resolved
||[Mar. 13th, 2009|01:30 am]
So, I was trying to find a nice generic way to ensure that I got my ssh-agent started.
You see what I really wanted was a solution - FOR ME. If someone else has an account on my computer, I don't want to confuse them, especially if they're fond of gnome-keyring.
So poking around the gdm scripts, it sources something called .xprofile in your homedir. It does this before your window manager of choice starts. So, it's the prime place to put this magical line:
eval $(ssh-agent -s)
It's pretty simple. The $() works like backticks (like CONTENTS=`ls`) - but it's more nestable. It's really useful in work actually (plus it's in our coding standards) and eval takes that output again and treats it as a directive to the shell.
So now, I have ssh-agenty goodness. And it's something I plan to use in work as well. Seriously, gnome-keyring gives me the creeps.