| Summary: | Plasma Workspace refuses to log out/reboot/shut down with message "logout has been canceled by kwalletmanager" | ||
|---|---|---|---|
| Product: | [Applications] kwalletmanager | Reporter: | Erik Quaeghebeur <bugs.kde.org> |
| Component: | general | Assignee: | Valentin Rusu <valir> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | miguelg, vkrevs |
| Priority: | NOR | ||
| Version First Reported In: | 19.04 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=516103 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
I started getting this regularly since the upgrade to Plasma 6.5. KDE walllet is configured to unlock automatically on login. First time I attempt to logout, I get the "logout has been cancelled by kwalletmanager5" message. Second time works. Operating System: openSUSE Leap 15.6 KDE Plasma Version: 6.5.5 KDE Frameworks Version: 6.22.0 Qt Version: 6.10.1 Kernel Version: 6.4.0-150600.23.81-default (64-bit) Graphics Platform: X11 Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor Memory: 128 GiB of RAM (125.7 GiB usable) Graphics Processor: NVIDIA GeForce RTX 4060 Ti Manufacturer: ASUS $ rpm -qa | grep kwallet | sort kf6-kwallet-6.22.0-kf.55.1.x86_64 kf6-kwallet-debuginfo-6.22.0-kf.55.1.x86_64 kf6-kwallet-debugsource-6.22.0-kf.55.1.x86_64 kf6-kwallet-tools-6.22.0-kf.55.1.x86_64 kf6-kwallet-tools-lang-6.22.0-kf.55.1.noarch kwalletd6-6.22.0-kf.55.1.x86_64 kwalletd6-debuginfo-6.22.0-kf.55.1.x86_64 kwalletd6-lang-6.22.0-kf.55.1.noarch kwalletmanager-25.12.1-kf.52.1.x86_64 kwalletmanager-lang-25.12.1-kf.52.1.noarch libkwalletbackend5-5-5.116.0-lp156.316.8.x86_64 libsvn_auth_kwallet-1-0-1.14.5-lp156.405.3.x86_64 pam_kwallet6-6.5.5-kf.83.1.x86_64 pam_kwallet6-common-6.5.5-kf.83.1.noarch signon-kwallet-extension-25.12.1-kf.323.1.x86_64 Some additional information. Was googling for "logout has been cancelled by kwalletmanager5" and stumbled on https://github.com/qbittorrent/qBittorrent/issues/13865#issuecomment-983202116 and the mentioned goldendict issue https://github.com/goldendict/goldendict/commit/8260ac87bac0681b738309a43d3392933562b958. From the last link: [quote] If GoldenDict's option "Close to system tray" is checked and GoldenDict's main window is visible when the user logs out, the logout is canceled in latest stable versions of KDE Plasma and Xfce desktop environments. The cause of this unintended and pointless logout cancellation is ignoring the close event. [/quote] And that led me to observe that the "logout has been cancelled by kwalletmanager5" only appears if the Wallet Manager's window is visible when attempting to log out. First attempt to log out fails with "logout has been cancelled by kwalletmanager5" but the Wallet Manager's window vanishes and then the second attempt to log out succeeds. If I explicitly close the Wallet Manager's window before attempting to log out then the logout succeeds on first attempt. One might ask "why is the Wallet Manager's window visible when I attempt to log out?". The answer is that it gets opened automatically whenever I log in. Even if I close it manually before log out - next log in automatically restores it. Another observation - the Wallet Manager's window only opens automatically on login if your account is configured to unlock automatically on login. |
Sometimes, when I try to shut down (or reboot or log out), I get the message "logout has been canceled by kwalletmanager" Usually a second try works. STEPS TO REPRODUCE 1. <some unknown stuff happens> 2. try to shutdown OBSERVED RESULT shutdown cancelled with message EXPECTED RESULT shutdown works without Kwalletmanager interfering SOFTWARE/OS VERSIONS KDE Plasma Version: 5.15.5 KDE Frameworks Version: 5.60.0 Qt Version: 5.12.3 kwalletmanager 19.04.3 ADDITIONAL INFORMATION See Bug 411346 for why this is considered a problem of Krusader