qtkeychain icon indicating copy to clipboard operation
qtkeychain copied to clipboard

qtkeychain 0.8 fails to use kwallet5

Open Ablinne opened this issue 7 years ago • 11 comments

I am running arch linux and plasma 5 and installed the update to version 0.8 of qtkeychain today. After this update the owncloud-client presents me with the message

** Message: Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files

And asks me for my passwords, even though my passwords are safely stored in my kwallet (which is up and running and in use by other applications).

Seems qtkeychain is trying to use gnome-keyring or whatever.

Environment variables are set correctly

albn@alexhij$ echo $XDG_CURRENT_DESKTOP
KDE
albn@alexhij$ echo $KDE_SESSION_VERSION
5

After downgrading qtkeychain to 0.7 owncloud works fine again.

Ablinne avatar Apr 20 '17 16:04 Ablinne

Confirmed, if qtkeychain is compiled with libsecret support and there is no libsecret service provider installed, kwalled is not used. Compiling without libsecret support fixes the problem.

antonio-rojas avatar Apr 21 '17 20:04 antonio-rojas

@Ablinne which KDE setup (distro etc.) are you using? @akallabeth I wonder if we can have a runtime check with kwalletd as fallback?

frankosterfeld avatar Apr 24 '17 19:04 frankosterfeld

@frankosterfeld Depends on how to detect libsecret is not used during runtime. (must be installed and available, otherwise it would not be tried). Easiest option would be to add a configuration option to override autodetection in detectKeyringBackend

akallabeth avatar Apr 25 '17 08:04 akallabeth

@frankosterfeld I am using Arch linux with plasma-desktop from the Extra repository. libsecret is installed as a dependency of the packages darktable-git evince pinentry webkit2gtk webkitgtk2, so I can not easily uninstall it. On the other hand neither gnome-keyring nor any other provider of org.freedesktop.secrets are installed. Maybe if no org.freedesktop.secrets-provider is found, qtkeychain can just skip libsecret and continue with other options?

Ablinne avatar Apr 25 '17 08:04 Ablinne

Any updates on this? I am getting the same error when starting mysql-workbench: (ArchLinux, KDE5, Plasma 5.10.2)

$ mysql-workbench

Workbench can't find libproj.so, some options may be unavailable.
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files

thePanz avatar Jun 15 '17 12:06 thePanz

@thePanz On Arch linux, the package update qtkeychain 0.8.0-2 fixed it for me. It is compiled without libsecret support. See changes to PKGBUILD here: https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/qtkeychain&id=9508b3f0487ec832875ab983e317fc4f8a7bfbaf.

Ablinne avatar Jun 16 '17 10:06 Ablinne

@Ablinne I installed such package, but did not helped. I guess because of libsecret being already installed?

$ pacman --query --info  qtkeychain
Name            : qtkeychain
Version         : 0.8.0-2
Description     : Provides support for secure credentials storage
Architecture    : x86_64
URL             : https://github.com/frankosterfeld/qtkeychain
Licenses        : BSD
Groups          : None
Provides        : qtkeychain-qt5
Depends On      : qt5-base
Optional Deps   : kwallet: kwallet backend [installed]
                  libgnome-keyring: GNOME keyring backend [installed]
                  libsecret: libsecret backend [installed]
Required By     : None
Optional For    : None
Conflicts With  : qtkeychain-qt5
Replaces        : qtkeychain-qt5
Installed Size  : 192.00 KiB
Packager        : Antonio Rojas <[email protected]>
Build Date      : Fri 21 Apr 2017 20:15:57 CEST
Install Date    : Fri 16 Jun 2017 12:25:20 CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

$ pacman --query --info libsecret
Name            : libsecret
Version         : 0.18.5+14+g9980655-1
Description     : Library for storing and retrieving passwords and other secrets
Architecture    : x86_64
URL             : https://wiki.gnome.org/Projects/Libsecret
Licenses        : LGPL
Groups          : None
Provides        : None
Depends On      : glib2  libgcrypt
Optional Deps   : gnome-keyring: key storage service (or use any other service implementing org.freedesktop.secrets)
Required By     : gvfs  networkmanager-openvpn  pinentry  webkit2gtk  webkitgtk
Optional For    : qtkeychain
Conflicts With  : None
Replaces        : None
Installed Size  : 1884.00 KiB
Packager        : Jan Alexander Steffens (heftig) <[email protected]>
Build Date      : Wed 05 Apr 2017 20:19:27 CEST
Install Date    : Wed 07 Jun 2017 09:42:27 CEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

thePanz avatar Jun 16 '17 13:06 thePanz

@thePanz, judging from the dependencies of mysql-workbench, https://www.archlinux.org/packages/community/x86_64/mysql-workbench/, it does not even use qtkeychain. So your error message is probably not related to this bug report.

Ablinne avatar Jun 16 '17 13:06 Ablinne

This problem was probably addressed by https://github.com/frankosterfeld/qtkeychain/pull/111 - now kwallet5 is preferred even when libsecret support is enabled.

ckamm avatar Jul 18 '18 09:07 ckamm

for me the issue is solved with relesed v0.9.0

hefee avatar Jul 18 '18 15:07 hefee

DESKTOP_SESSION=kde KDE_SESSION_VERSION=5 nextcloud.

cab404 avatar May 16 '20 11:05 cab404