I use pam_kwallet to have my KDE kwallet automatically opened when signing into KDE.
Sometimes it works, sometimes it doesn´t.
Sometimes the wallet is open after logging in, but very often the wallet is still closed and I need to open it manually.
I´m not able to find a reason why it failes sometimes, there is no error.
I observed only one thing, on my older machine with an AMD FX CPU it has always worked, always.
The occasional failing started to occur on my AMD Ryzen system. A sign for a timing issue?
I used it with Leap 15.0. However, at the time of the Leap 15.1 release, it had problems (it broke “sudo”). So I went back to using a GPG key for encrypting the wallet. That problem has since been fixed, as far as I know.
In my experience with Leap 15.0 and with Leap 15.1 during Beta testing, it worked fine as long as I was using either “sddm” or “gdm” for graphic logins. It never worked with “lightdm”.
I have never seen the intermittent behavior that you seem to be describing.
Yes, yes, during the Leap 15.1 Beta testing, there was an issue between KWallet and, everything else that used ‘sudo’ – ‘sudo’ was broken because, something got forgotten in libgcrypt20 but, that got fixed for the Leap 15.1 release …
Yes, the systemd Journal collects quite a few message such as:
But, none of these informational messages mean that, KWallet is broken – they’re only a trace of what’s going on to help the developers analyse any issues which may or, may not occur …
Ah,ok. But wouldn´t it be sensible to disable these messages in production release? According to Google, quite a number of people are bothered by this “noise”. E.g. I run a script from within conky that runs commands with sudo. This script gets executed every few seconds, thus I have many, many of these messages…
Oh, sudo has rules to make executing commands quiet, if I know the parent process that starts kwalletd / kwalletmanager, could this be a way to avoid these messages?
AFAICS, the only way to influence some reduction of the “trace noise” is, to raise a Bug Report against the application which writing these systemd Journal entries.
Use “visudo” to edit ‘/etc/sudoers’ – by default “Defaults log_output” is commented out but, we may have to enable “Defaults !log_output” to keep “sudo” quiet …