Skip to content

SecretServiceKeychainAccess fails to unlock a keyring provided by gnome-keyring #156

Closed

Description

@purejava

On intense testing for this issue I discovered, that SecretServiceKeychainAccess tries to unlock the keyring within storePassphrase() and fails.

This only happens for storePassphrase(), not for loadPassphrase() or the two others and only with gnome-keyring. A gnome-keyring can be locked e.g. when there is a password set for the keyring that differs from the user password, so the keyring does not get unlocked automatically on user login to the session.

The reason for the failing unlock attempt is a prompt, that is generated by gnome-keyring, because the keyring is locked and should be accessed, but the prompt is not handled:

The unlock()-Method returns "DBusResult[value=org.purejava.secret.api.Pair<[], /org/freedesktop/secrets/prompt/u2>, error=null]" in case of a locked gnome-keyring.

A fix would be to handle the prompt. This does not break anything, as the prompt handling is needed to unlock the keyring as intended within storePassphrase().

Activity

  1. added this to the next milestone on Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions