Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qtkeychain doesn't support gnome-keyring 40.0 #211

Open
ChristopheLarchier opened this issue Apr 12, 2022 · 9 comments
Open

qtkeychain doesn't support gnome-keyring 40.0 #211

ChristopheLarchier opened this issue Apr 12, 2022 · 9 comments

Comments

@ChristopheLarchier
Copy link

ChristopheLarchier commented Apr 12, 2022

Access to gnome-keyring 40 does not work, all *PasswordJob are failing.
Works ok with gnome-keyring 3-36
Build from last sources with Qt 6.2.3

@ChristopheLarchier ChristopheLarchier changed the title qtkeychain fails with gnome-keyring 40.0 qtkeychain doesn't support gnome-keyring 40.0 Apr 12, 2022
@frankosterfeld
Copy link
Owner

Which distribution are you on? Do you happen to know if libsecret is available/working, or if it is falling back to the gnome keyring backend?

@ChristopheLarchier
Copy link
Author

ChristopheLarchier commented Apr 13, 2022 via email

@frankosterfeld
Copy link
Owner

Under Ubuntu 21.10/gnome 40.4.0/wayland, I've tried an application built elsewhere and packaged as AppImage, using qtkeychain 0.13.2, and storing and reading the password works (seahorse also shows it).

This is a standard Ubuntu install + gnome PPA, so nothing special installed.

(The application prints Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway, wayland qpa plugin not being in the appimage)

@ChristopheLarchier
Copy link
Author

ChristopheLarchier commented Apr 14, 2022 via email

@frankosterfeld
Copy link
Owner

I now tried with Qt 6.2.4 (I don't think the Qt version matters), after installing the minimum requirements (Qt from the online installer, cmake, g++, libsecret-dev...), built the testclient with cmake -DBUILD_TEST_APPLICATION=ON -DBUILD_WITH_QT6=ON, and it works for me. Can you test if the testclient fails for you, too?

@ChristopheLarchier
Copy link
Author

ChristopheLarchier commented Apr 27, 2022 via email

@ChristopheLarchier
Copy link
Author

ChristopheLarchier commented Apr 28, 2022 via email

@FredericLespez
Copy link

@clinfomaniak
Could you precise what was the problem with libglib-2.0.so.0 please ?
I am working on a bug similar the one described here.
Thanks in advance.

@frankosterfeld
Copy link
Owner

I fixed this for an internal tool in KDAB by excluding all of glib-2.0/gthread-2.0/gmodule-2.0/gobject-2.0 from the appimage. I think what happens is that when loading gnome-keyring libs at runtime (dlopen), the packaged glib libs don't match what the (system) keyring lib was built against. Omitting them from the package makes the application use the system glibs, which are compatbile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants