Bug 505000 - Overlapping multiple password dialogs when starting kwallet on login, and dialog vanishing behind other windows
Summary: Overlapping multiple password dialogs when starting kwallet on login, and dia...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwalletmanager
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.04.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-30 08:28 UTC by Jens
Modified: 2025-07-28 03:46 UTC (History)
2 users (show)

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


Attachments
two password dialogs at the same time (72.36 KB, image/png)
2025-05-30 08:28 UTC, Jens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens 2025-05-30 08:28:36 UTC
Created attachment 181890 [details]
two password dialogs at the same time

SUMMARY. see $SUBJECT


STEPS TO REPRODUCE
1. set user to autologin (because the harddrive is LUKS encrypted anyway)
2. boot up
3. see attachment

OBSERVED RESULT
kwallet asks for the master password AND claims the password was not unlocked so it asks for it again.

EXPECTED RESULT
As long as the master password dialog is shown, there should not be any other dialogs asking for the same password.
Ideally, since kwallet can also manage ssh keys, this dialog should always be in front of other windows, not allow the keyboard focus be stolen from it, and maybe even flash once in a while when idle. It is hard to enter the master password while other apps are starting up, but waiting causes the dialog to vanish behind these other apps. On one occasion I almost rebooted a remote server because I couldn't login - and it was just because kwallet was asking for a master password to unlock the ssh key *behind* my email app window on the second screen.

SOFTWARE/OS VERSIONS: KDE Neon 6.3 with all updates applied.
Comment 1 michaelk83 2025-05-30 09:56:37 UTC
There are several requirements for the wallet to auto-unlock on login. If any of these fail, you will see the unlock dialog when the wallet is requested for the first time:
- You must use a Blowfish wallet. Auto-unlock of GPG wallets is not supported.
- The wallet password must match the user password.
- kwallet-pam must be configured correctly.
- This may not work with a LUKS setup: Bug 375236
- This may not work with user auto-login / empty password: Bug 468069
- There's currently an issue with kwallet-pam itself, which will be resolved in the next version: Bug 502808

The dialogs not staying on top is a long-standing known issue, which has been difficult to address fully. See Bug 141267 and its multitude of related issues and duplicates.

The only thing here which I've not seen reported elsewhere is having multiple dialogs show up. However, the bottom dialog in your screenshot looks like it might be from Gnome Keyring. The top one is from KWallet. Gnome Keyring and KWallet operate separately.
Comment 2 John Kizer 2025-06-13 20:33:21 UTC
For Jens, can you please check if disabling GNOME Keyring removes the additional dialog, leaving only the issues mentioned by michaelk83?

Thanks!
Comment 3 Bug Janitor Service 2025-06-28 03:47:40 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Jens 2025-06-28 10:48:41 UTC
Hi,

Note that I am not complaining about ONE dialog, I am referring to multiple dialogs of kwallet overlapping each other.

- You must use a Blowfish wallet. Auto-unlock of GPG wallets is not supported.
  CHECK
- The wallet password must match the user password.
  CHECK
- kwallet-pam must be configured correctly.
  What is "correctly"? I use the default KDE Neon configuration, no manual changes.
- This may not work with a LUKS setup: Bug 375236
  This may be it, I use LUKS.
- This may not work with user auto-login / empty password: Bug 468069
  This may be it, too. I use autologin because I provide the LUKS password on boot already.
- There's currently an issue with kwallet-pam itself, which will be resolved in the next version: Bug 502808
  Let's see if this solves it. Can I expect it in the packages any time soon?

I'll also disable GNOME keyring (where?) to check.
Comment 5 michaelk83 2025-06-28 11:34:28 UTC
(In reply to Jens from comment #4)
> Note that I am not complaining about ONE dialog, I am referring to multiple
> dialogs of kwallet overlapping each other.

As noted earlier, your provided screenshot looks like one dialog from KWallet, and one from Gnome Keyring.

> - There's currently an issue with kwallet-pam itself, which will be resolved
> in the next version: Bug 502808
>   Let's see if this solves it. Can I expect it in the packages any time soon?

This should be out now. But I don't expect this would solve your issue, since there are still the LUKS and auto-login issues.

> I'll also disable GNOME keyring (where?) to check.

You'll have to consult the documentation and online resources.
Comment 6 Bug Janitor Service 2025-07-13 03:47:23 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2025-07-28 03:46:22 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.