Bug 428903 - Kwallet causes system shutdown to hang for about 8 seconds
Summary: Kwallet causes system shutdown to hang for about 8 seconds
Status: REPORTED
Alias: None
Product: kwalletmanager
Classification: Applications
Component: general (show other bugs)
Version: 20.08
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
: 434199 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-11-09 18:52 UTC by Jacob
Modified: 2024-04-01 06:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob 2020-11-09 18:52:12 UTC
SUMMARY
Kwallet causes shutdown to hang for 8-10 seconds before system shuts down under certain conditions

STEPS TO REPRODUCE
1. have kwallet enabled with the default settings
2. enable 'show manager in system tray' in KDE wallet preferences
3. log out and log in to make sure that the Wallet Manager is shown in the system tray
4. shutdown/reboot your system from GUI

OBSERVED RESULT
shutdown hangs for about 8 seconds before it shuts down properly

EXPECTED RESULT
system shuts properly without a hang (like when the abovementioned setting is not enabled)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon
(available in About System)
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION

if I perform 'shutdown -r now' in the terminal, the system shuts down as expected regardless the kwallet preferences
Comment 1 Julien Delquié 2020-11-14 15:52:10 UTC
Hello,

I'm happy that someone else has this issue!

I performed a dichotomic search using a fresh account and my current account to find out what application caused the issue: kwallet. The fresh account as the same issue has my current account due to a single line in kwalettrc file.

Then, if I remove the entry « Launch Manager=true » from the fresh account, everything works like a charm.

Next step is to try performing this little thing on my current account.
Comment 2 Julien Delquié 2020-11-14 16:04:25 UTC
(In reply to Julien Delquié from comment #1)
> Hello,
> 
> I'm happy that someone else has this issue!
> 
> I performed a dichotomic search using a fresh account and my current account
> to find out what application caused the issue: kwallet. The fresh account as
> the same issue has my current account due to a single line in kwalettrc file.
> 
> Then, if I remove the entry « Launch Manager=true » from the fresh account,
> everything works like a charm.
> 
> Next step is to try performing this little thing on my current account.

Ok, sorry for the filename it's .config/kwalletrc.

So, here is what I have done :
1. remove the faulty line,
2. reboot: 8-10 seconds to wait, the modification is not taken into account immediately,
3. login to my current account: kwallet is launched and visible without requesting it, I closed it,
4. reboot: instant! yay!
5. login to my current account: no kwallet visible without requesting it, cool,
6. reboot (again, just to be sure): instant! yay!
7. login to my current account: still no kwallet visible without requesting it, so I think I'm done with this. :)

So, what happens with this little line from an old account kwallet config ? :'(
Comment 3 Jacob 2020-11-14 17:41:46 UTC
Removing 'Launch Manager=true' from .config/kwalletrc seems to just disable the 'show manager in system tray' setting in KDE wallet preferences, which I know that solves the issue. My problem is, if that setting is enabled (like I wrote in my bug description), the logout process still does not start instantly.
Comment 4 Julien Delquié 2020-11-14 17:47:09 UTC
(In reply to Jacob from comment #3)
> Removing 'Launch Manager=true' from .config/kwalletrc seems to just disable
> the 'show manager in system tray' setting in KDE wallet preferences, which I
> know that solves the issue. My problem is, if that setting is enabled (like
> I wrote in my bug description), the logout process still does not start
> instantly.

I just have found this bug report after trying what I have done in my comments.
I'm not a dev, I just give some other observations using files (because it was my method to find out what happens, and I'm curious on how you found out it was kwallet).

And obviously, like you, I prefer to have my kwallet in my systray! :)
Comment 5 Eduardo 2021-08-30 01:41:07 UTC
*** Bug 434199 has been marked as a duplicate of this bug. ***
Comment 6 Julien Delquié 2024-04-01 00:17:26 UTC
Hello, still have this issue here?
Because I do not, since a long time now.