The best workaround I can think of is to change my ~/.profile to this:
if test -z "$GNOME_KEYRING_PID"
then
if test -z "$SSH_AUTH_SOCK"
then
if type ssh-agent >/dev/null 2>/dev/null
then eval $(ssh-agent)
fi
fi
if test -n "$SSH_AUTH_SOCK"
then
if type ssh-add >/dev/null 2>/dev/null
then
if ! ssh-add -l >/dev/null then ssh-add
fi
fi
fi
fi
But that won't account for GNOME Keyring being started in --login mode in PAM but not being started in --start mode via GNOME Session.
The best workaround I can think of is to change my ~/.profile to this:
if test -z "$GNOME_ KEYRING_ PID"
eval $(ssh-agent)
then
ssh- add
then
if test -z "$SSH_AUTH_SOCK"
then
if type ssh-agent >/dev/null 2>/dev/null
then
fi
fi
if test -n "$SSH_AUTH_SOCK"
then
if type ssh-add >/dev/null 2>/dev/null
then
if ! ssh-add -l >/dev/null
fi
fi
fi
fi
But that won't account for GNOME Keyring being started in --login mode in PAM but not being started in --start mode via GNOME Session.