Skip to content

secret-service library interferes with kwallet on KDE without GNOME keyring installed, since kwallet offers org.freedesktop.secrets #83

Closed

Description

@purejava

I analyzed cryptomator/cryptomator#3476 and was wondering why the user has this issue, although Cryptomator worked on my EndevourOS.

The bottom line is, that kwallet offers a secret service interface for some time now. So on a freshly installed KDE without GNOME keyring installed, you have the following D-Bus service available:

Nicht gespeichertes Bild 2

That's exactly the one secret-service checks for on startup and GNOME keyring is available from then on as a keychain back end.

The user's problem resulted from the combination of configuring GNOME keyring as the password back end in Cryptomator, but not having a default KDE wallet.

Once you have a default KDE wallet (which is created from KDE, when you first try to save a secret or manually created or kdewallet does it for you), you can even use secret-service and kdewallet interchangeably to save passwords to kwallet and read them from there. The following screenshot shows the result when having two vaults:
Bildschirmfoto_20240706_150149
I did not test every feature, but as far as I can see, this works flawlessly. However, secret-service using kwallet does not trigger kwallet to create a default KDE wallet, in case it does not exist and that leads to many ugly exceptions in Cryptomator.

Activity

  1. infeo commented on May 22, 2025

    @infeo
    Member

    I noticed that the secret-service library offers a method SimpleCollection.isGnomeKeyringAvailable(). I think we should use this method instead of the general "isAvailable()" to prevent such errors and not confuse people.

  2. added this to the next milestone on May 30, 2025
  3. added a commit that references this issue on May 30, 2025
    2916df0
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