Document keyring unlock: the login PAM stack must pass the password to the secret service (oo7 or gnome-keyring)
CI / test (push) Failing after 30s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-25 14:01:29 -08:00
1 parent 326dd06f30
commit 0ce0de0356
2 files changed
+34 -4

No files matched your search

+5 -4
View File
@@ -53,8 +53,8 @@ else
fi
# Session bus. Use the per-user bus (systemd's $XDG_RUNTIME_DIR/bus) when there is one: that is
# where pam_gnome_keyring's daemon, unlocked with the login password, registers
# org.freedesktop.secrets. A fresh dbus-run-session bus would hide it, and apps would then
# where the secret service (gnome-keyring or oo7-daemon), unlocked with the login password by
# its PAM module, registers org.freedesktop.secrets. A fresh dbus-run-session bus would hide it, and apps would then
# activate a second, locked keyring daemon there (unlock prompts, "default keyring" dialogs).
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -S "${XDG_RUNTIME_DIR:-/nonexistent}/bus" ]; then
export DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
@@ -87,8 +87,9 @@ if command -v systemctl >/dev/null 2>&1; then
systemctl --user try-restart xdg-desktop-portal.service >>"$log" 2>&1 || true
fi
# Hand the PAM-started keyring daemon (already unlocked by the login password) its session
# components, so it owns org.freedesktop.secrets on our bus. Harmless if it isn't installed,
# Hand the PAM-started gnome-keyring daemon (already unlocked by the login password) its session
# components, so it owns org.freedesktop.secrets on our bus. (oo7-daemon needs none of this: it
# is started by systemd and unlocked over its PAM socket; see docs/keyring.md.) Harmless if it isn't installed,
# already running under systemd's socket units, or not unlocked by PAM (it then prompts once).
if command -v gnome-keyring-daemon >/dev/null 2>&1; then
eval "$(gnome-keyring-daemon --start --components=secrets 2>>"$log")"