How is gnome-keyring launched?Ok, looks like I've got the same behavior here. GDM freezes after entering the password. Version: gnome-keyring-48.0.
Error on the console is:
I already checked /usr/local/etc/pam.d/gdm-password - and both pam_gnome_keyring.so entries are present and active.Code:gdm-password: gkr-pam: unable to locate daemon control file.
With x11/gnome-shell or x11/gnome-shell-extensions you need to install x11/xdg-desktop-portal-gnome. It is already a dependency in meta port x11/gnome (or gnome-lite).
gnome-keyring checks SSH_AUTH_SOCK variable. In /usr/local/share/example/gnome-shell/xprofile, this variable is defined.
Personally SSH_AUTH_SOCK is subdir of XDG_RUNTIME_DIR (with gnome/gdm, you don't need to defined this variable, they follow the XDG PAM module, but with lightdm it uses value of ConsoleKit2).
If your login manager is lightdm, you can defined a new value (e.g. in .xprofile) and don't forget to enable the gnome-keyring PAM module too.
Code:
_version=$(sysctl kern.osreldate | awk -F " " '{printf("%s", $2);}')
# Set $XDG_RUNTIME_DIR
if [ ${_version} -gt 1401000 ]; then
_user_id=$(id -un)
if [ -d "/var/run/xdg/${_user_id}" ]; then
XDG_RUNTIME_DIR="/var/run/xdg/${_user_id}"
fi
else
_user_id=$(id -u)
if [ -d "/var/run/user/${_user_id}" ]; then
XDG_RUNTIME_DIR="/var/run/user/${_user_id}"
fi
fi
export XDG_RUNTIME_DIR
# Unlock gnome-keyring-daemon
if test -n "$DESKTOP_SESSION" ; then
SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/keyring"
export SSH_AUTH_SOCK
fi
gnome-keyring is working fine, I have sockets in XDG_RUNTIME_DIR/keyring.
Code:
ps x
[...]
1497 - S 0:00,03 /usr/local/bin/gnome-keyring-daemon --start --components=secrets
1498 - I 0:00,01 /usr/local/bin/gnome-keyring-daemon --start --components=pkcs11
1499 - I 0:00,03 /usr/local/bin/gnome-keyring-daemon --start --components=ssh
[...]
Last edited: