Bug 502808 - kwallet-pam no longer starts kwallet: kwalletd dropped handling of the --pam-login option
Summary: kwallet-pam no longer starts kwallet: kwalletd dropped handling of the --pam-...
Status: CONFIRMED
Alias: None
Product: kwallet-pam
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: master
Platform: Other Linux
: VHI major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-04-14 21:02 UTC by daron439
Modified: 2025-04-24 09:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description daron439 2025-04-14 21:02:54 UTC
SUMMARY
After updating to https://invent.kde.org/frameworks/kwallet/-/commit/4af84b4e8908764439cfe27d71d1d44ae0cdd116,  kwallet no longer autostarts via kwallet-pam. kwallet-pam calls /usr/bin/kwalletd6 --pam-login 13 14 as root and it crashes (This application failed to start because no Qt platform plugin could be initialized....).
Should kwallet-pam start ksecretd now?

STEPS TO REPRODUCE
1. Have pam-kwallet installed
2. Log in

OBSERVED RESULT
kwallet does not start, and secrets are not unlocked automatically.

EXPECTED RESULT
kwallet should start successfully and unlock the wallet at login via kwallet-pam.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Luca Beltrame 2025-04-23 08:08:06 UTC
Confirmed. Since the move to ksecretd, kwalletd crashes early during the login, and that causes a delay of ~10-15 seconds to the login until the wallet window is displayed. Once the wallet is unlocked, the rest of the session starts.
Comment 2 Luca Beltrame 2025-04-23 08:08:55 UTC
(In reply to Luca Beltrame from comment #1)
> Confirmed. Since the move to ksecretd, kwalletd crashes early during the
> login, and that causes a delay of ~10-15 seconds to the login until the
> wallet window is displayed. Once the wallet is unlocked, the rest of the
> session starts.

While Qt complains about being unable to load a platform plugin, I wonder if it's a red herring (happens on both X11 and Wayland sessions).
Comment 3 daron439 2025-04-24 06:01:24 UTC
I built kwallet-pam with -DKWALLETD_BIN_PATH=/usr/bin/ksecretd and it seems to work fine.
Comment 4 Luca Beltrame 2025-04-24 09:33:12 UTC
The reason (thanks to Fabian Vogt for noticing) is that the `kwalletd6` command (the thin wrapper around ksecretd) dropped the --pam-login option, so it will no longer work as expected.