Comment 7 for bug 377467

Revision history for this message
Mikel Ward (mikelward) wrote :

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.