Bug 401681 - libsecrect/ gnome-keyring not working under wayland
Summary: libsecrect/ gnome-keyring not working under wayland
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.14.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-03 04:54 UTC by Nowshed H. Imran
Modified: 2018-12-05 19:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Mailspring error message (13.62 KB, image/png)
2018-12-03 04:54 UTC, Nowshed H. Imran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nowshed H. Imran 2018-12-03 04:54:30 UTC
Created attachment 116640 [details]
Mailspring error message

SUMMARY
I am not sure this is a Kwin specific bug. I use mailspring that needs libsecrect and gnome-keyring. It does not use kwallet as it does not support libsecret. I have edited the /etc/pam.d/login file according to archwiki in order to unlock gnome-keyring at login.
https://wiki.archlinux.org/index.php/GNOME/Keyring#Using_the_keyring_outside_GNOME
Under x session, it works fine but under wayland mailspring shows an error message that I have included in the attachment. A similar bug has been posted in sddm github page.
https://github.com/sddm/sddm/issues/1104

STEPS TO REPRODUCE
1. Opening an app that uses gnome-keyring under wayland

OBSERVED RESULT
gnome-keyring not unlocked when starting the system.

EXPECTED RESULT
Seamless libsecret/ gnome-keyring integration when pam file is edited.

SOFTWARE/OS VERSIONS
Windows: n/a
MacOS: n/a
Linux/KDE Plasma: Linux 4.19
(available in About System)
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.52.0
Qt Version: 5.11

ADDITIONAL INFORMATION
Comment 1 Martin Flöser 2018-12-03 15:46:15 UTC
I'm sorry but this is outside of KWin's responsibility.
Comment 2 Nowshed H. Imran 2018-12-03 16:41:29 UTC
This is a KDE problem though. If you can kindly refer it to the maintainer that can solve it or the package related to it.
Comment 3 Martin Flöser 2018-12-03 17:23:19 UTC
There is no indication that this is a kde problem. All we know is that using two non kde applications don't work in a plasma Wayland session. What we also know is that at least one of those applications is not intended to be used outside of gnome. The problem is certainly not in anything kde provides. If you need user support to set this up please consult the user support of the named applications. Kde's bug tracker is not a user support forum, though. If there is any evidence showing that this is truly a bug in our software, please provide it.
Comment 4 David Edmundson 2018-12-03 17:30:37 UTC
@now-im

to help narrow it down, please run "env" in both the X and wayland case and look for differences there wrt gnome keyring.
Comment 5 Kyle Tirak 2018-12-03 19:49:08 UTC
I filed the sddm issue. I'll look deeper into my env tomorrow. 

It seems to be a volatile issue for me as its gone from applications not being able to communicate with the gnome-keyring-daemon, to the daemon not starting on login, and back to the daemon starting but not communicating over the last several months.

I'll note that I am also on Arch Linux, so there is some possibility of it being a packaging issue as well.
Comment 6 Kyle Tirak 2018-12-04 16:05:22 UTC
The only differences I see in my env that I'd think *might* have some effect are

SHLVL is one higher in Wayland (3) vs X (2)
The X session sets GTK_MODULES=canberra-gtk-module, while the Wayland session does not.

I don't necessarily think either of these should affect gnome-keyring, but the only other differences are ones I would expect -- thinks like the Wayland session having QT_WAYLAND_DISABLE_WINDOWDECORATION and QT_WAYLAND_FORCE_DPI variables and XDG_VTNR being set to 2 in Wayland instead of 1. No env variables seem to directly relate to gnome-keyring.
Comment 7 Nowshed H. Imran 2018-12-05 13:22:49 UTC
I have filed a bug in mailspring as this doesn't seem like a KDE software problem.
https://github.com/Foundry376/Mailspring/issues/1257
Comment 8 David Edmundson 2018-12-05 14:09:26 UTC
File it with gnome-keyring.
Comment 9 Kyle Tirak 2018-12-05 19:42:17 UTC
Filed at https://gitlab.gnome.org/GNOME/gnome-keyring/issues/19