In KDE Plasma 6 has a bug, which is effecting in some computers. Computer does not shutdown or reboot. The fix is to install packages qdbus-qt5 and qtchooser and then make a scrip(s) or programs for shutting down and for rebooting.
The culprit is LogoutPrompt.promptShutDown
The scripts:
************