SUMMARY When I try to delete another user, and pick "Delete files" or "Keep files", nothing happens. STEPS TO REPRODUCE 1. Open System Settings to Users. 2. Click another account (in this case, an administrator). 3. Click "Delete User...", and "Delete files" or "Keep files". OBSERVED RESULT The user is not deleted. EXPECTED RESULT The user is deleted. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.24.0 KDE Frameworks Version: 5.90.0 Qt Version: 5.15.2 Kernel Version: 5.16.8-zen1-1-zen (64-bit) Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor Memory: 15.6 GiB of RAM Graphics Processor: NVIDIA GeForce GT 730/PCIe/SSE2 ADDITIONAL INFORMATION Possibly related to Bug 335404. However, that bug says that user deletion fails silently if the other user is logged in. In my case, user deletion fails silently even if I reboot, log into my main account, and delete another account I'm not logged into.
Are you getting a Polkit password prompt?
I do not get a Polkit password prompt. (Note that I have Polkit setup to use a 2FA authenticator dongle or a password. I'm also using systemd login if that's relevant.) If I run systemsettings5 in a terminal, nothing pops up when I click "Delete files" or "Keep files" (though clicking between pages creates lots of QML warnings). Nothing appears in the journalctl either. Am I missing a KDE system package?
Is polkit-kde-agent installed? Does running "pkexec ls" produce a password prompt?
(In reply to Nicolas Fella from comment #3) > Is polkit-kde-agent installed? Yes. And opening KWrite and trying to save a file in /dev/ pops up a password prompt. > Does running "pkexec ls" produce a password prompt? Yes. If I cancel the prompt I get: > Error executing command as another user: Not authorized > > This incident has been reported.
It's the same root cause as https://bugs.kde.org/show_bug.cgi?id=449385 the fix for it is just incomplete
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1461
Git commit 79113d99e44ace405bd9211e2c0f73659ff94c0f by Nicolas Fella. Committed on 16/02/2022 at 12:38. Pushed by nicolasfella into branch 'master'. [kcms/user] Set interactive auth flag for more calls Creating and deleting users needs that too This also means that we need to be more correct with the types passed into the DBus calls since with passing the args as list we don't get implicit conversion to the correct type any more FIXED-IN: 5.24.2 M +12 -3 kcms/users/src/kcm.cpp M +1 -1 kcms/users/src/kcm.h https://invent.kde.org/plasma/plasma-workspace/commit/79113d99e44ace405bd9211e2c0f73659ff94c0f
Git commit 2b9ea88c9d3fe7b7530c20e0a6fe1bf70d0accde by Nicolas Fella. Committed on 16/02/2022 at 12:39. Pushed by nicolasfella into branch 'Plasma/5.24'. [kcms/user] Set interactive auth flag for more calls Creating and deleting users needs that too This also means that we need to be more correct with the types passed into the DBus calls since with passing the args as list we don't get implicit conversion to the correct type any more FIXED-IN: 5.24.2 (cherry picked from commit 79113d99e44ace405bd9211e2c0f73659ff94c0f) M +12 -3 kcms/users/src/kcm.cpp M +1 -1 kcms/users/src/kcm.h https://invent.kde.org/plasma/plasma-workspace/commit/2b9ea88c9d3fe7b7530c20e0a6fe1bf70d0accde
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4526
Git commit 95d495164bfaee45dde7588aae7fa467b100a4d9 by David Edmundson, on behalf of ivan tkachenko. Committed on 12/08/2024 at 09:15. Pushed by davidedmundson into branch 'master'. kcms/users: Remove workaround for QTBUG-100458 The new API has been shipped in Qt 6.7.0 Effectively reverts 79113d99e44ace405bd9211e2c0f73659ff94c0f and efddc639b7f1443e643787e841893a5700f07742 Related: bug 449385 M +4 -11 kcms/users/src/kcm.cpp M +18 -25 kcms/users/src/user.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/95d495164bfaee45dde7588aae7fa467b100a4d9