Clayton Craft b30bac94ff main/linux-pam: fix gnome-keyring unlocking on login
gnome-keyring-daemon is started by PAM with --login and expects to be
completed later by running g-k-d --start (which connects to the --login
instance via D-Bus). However, when started in the auth phase, this occurs
before user login so there is no user D-Bus session yet. The g-k-d --login
process cannot register itself on D-Bus, so later when g-k-d is started
(e.g. by D-Bus activation or start-cosmic), it cannot find the --login
instance and the keyring is never unlocked.

When started in the session phase, the user has already authenticated and
the session D-Bus exists, allowing g-k-d --login to register properly so
that later g-k-d --start can complete initialization and unlock the keyring.
This is the documented configuration:
https://wiki.gnome.org/Projects/GnomeKeyring/Pam

This reverts 6d12e7ca33.
2025-12-27 13:20:02 +01:00
..