← all posts site ↗

unity hub kept asking for a keyring

unity hub made me sign in every single time i launched it. i figured it was a flatpak permission thing or a unity bug. it was neither. the real cause was that i had no keyring at all. the secrets service daemon was running, and the hub had permission to use it, but the keyrings folder was completely empty. there was no collection, and the pam hooks that should unlock a keyring at login were missing from both the greeter and the login setup.

unity hub saves its login token through the secret service. with no collection to save into, the save failed every session, so at the next launch it had nothing to read and asked again. it was never about unity. i created a login keyring and unlocked it with my password, then wired the pam keyring module into the greeter and login paths so it unlocks automatically every time i log in. it is registered on the bus and unlocked right now. one manual sign into the hub and the token finally lands somewhere it will persist.

there is one caveat that comes straight out of the face unlock work. a face login carries no password, so pam cannot hand the keyring a token on those mornings. the face daemon solves that by holding the keyring password itself in secure storage, and the only path to wire that up needs one command run from a terminal because it scans your face first. skip it and after a face login the keyring stays locked and the hub would start prompting again. run it and face logins unlock the keyring too.