omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

omarchy-login PAM service does not unlock GNOME Keyring on greetd login

Open grold opened this issue 1 week ago • 1 comments

System details

Omarchy (omarchy-settings-dev 4.0.0.r8517.gf84b3bd-1), kernel 7.3.6-3-omarchy, greetd 0.10.3-2.1, gnome-keyring 1:51.1-1, gcr-4 4.4.1-1

What's wrong?

After migrating from SDDM to greetd (PR #20404), logging in with a password does not unlock login.keyring, causing gcr-prompter to display an interactive password prompt shortly after the session starts.

Previously, /etc/pam.d/sddm (and /etc/pam.d/sddm-autologin) included pam_gnome_keyring.so:

-auth       optional    pam_gnome_keyring.so
-session    optional    pam_gnome_keyring.so auto_start

The new /etc/pam.d/omarchy-login service (referenced by /etc/greetd/config.toml) includes greetd -> system-local-login -> system-login, none of which load pam_gnome_keyring.so.

Observed behavior after reboot:

  1. greetd opens the omarchy-login session without running pam_gnome_keyring.so, leaving ~/.local/share/keyrings/login.keyring locked.
  2. Seconds after session start, gcr-prompter prompts the user to unlock the keyring.
  3. Additionally, both gnome-keyring-daemon.service (--foreground --components=pkcs11,secrets --control-directory=/run/user/1000/keyring) and D-Bus activation (dbus-:[email protected], --start --foreground --components=secrets) start simultaneously, resulting in two running gnome-keyring-daemon processes and The Secret Service was already initialized / discover_other_daemon: 1 warnings in the user journal.

Expected behavior: Password logins via greetd (omarchy-login) should pass credentials through pam_gnome_keyring.so so login.keyring is unlocked automatically at login without an extra gcr-prompter dialog, and without spawning duplicate gnome-keyring-daemon instances.

Suggested fix: Add -auth optional pam_gnome_keyring.so and -session optional pam_gnome_keyring.so auto_start to etc/pam.d/omarchy-login (note: autologin sessions still cannot unlock a password-protected keyring without a password).

Related: #20404, #15843, #19411


Assisted by Gemini 4 Hydrogen (Reasoning: Medium)

grold avatar Nov 28 '26 10:11 grold

Codex High, Opus 5.5 High, and Muse Wonder High reviewed the PAM stack and #20542 in source. The current greetd stack omits the GNOME Keyring hooks. The proposed auth hook can unlock an existing login.keyring when the passwords match, and it can also create an encrypted login keyring for users who only have Omarchy’s passwordless default. Omarchy previously removed that hook from SDDM to prevent this side effect. Commit 1a743d3

The issue is already linked to #20542 and waits on the decision about the default keyring behavior. A live greetd login and the reported duplicate-daemon behavior still need verification.

omarchybot avatar Nov 28 '26 10:11 omarchybot