/etc/xdg/xfce4/xinitrc installed by =xfce-base/xfce-utils-4.6.1 starts ssh-agent automatically on xfce startup, even if gnome-keyring is already running as a SSH agent (started by PAM). This way, ssh-agent replaces SSH_AUTH_SOCK set by gkr which is unintended. As a solution, I suggest to add a check for SSH_AUTH_SOCK along with SSH_AGENT_PID (which isn't set by gkr).
Created attachment 212772 [details, diff] Patch to fix the issue
Report it also to http://bugzilla.xfce.org/ as it's upstream file we are installing, not a custom Gentoo one and link us there. Thanks.
Michal, have you been able to post upstream yet? Thanks.
(In reply to comment #3) > Michal, have you been able to post upstream yet? Thanks. Yes, the appropriate thread is linked in 'URL' field.
(In reply to comment #4) > (In reply to comment #3) > > Michal, have you been able to post upstream yet? Thanks. > > Yes, the appropriate thread is linked in 'URL' field. > Sorry, I missed that! If upstream doesn't support the idea, we don't really want to maintain it in Gentoo. I hope you understand.
Upstream bug was fixed, I've snatched the patch from git to xfce4-session-4.7.0 (but won't backport it to 4.6.x). + 24 Oct 2010; Samuli Suominen <ssuominen@gentoo.org> + xfce4-session-4.7.0.ebuild, + +files/xfce4-session-4.7.0-gnome-keyring.patch: + Fix gnome-keyring initialization wrt #296606 by Michał Górny.