I want to script a logout/reboot to exit KDE gracefully and reboot, not just issue a shutdown -R now that will just kill all processes and reboot.
I have found several solutions that are all years old and that involve installing no longer existing utilities that are part of QT4, which I do not want to do. That’s just introducing legacy that can potentially can come back later to haunt me. Ie, I am not going to install libqt4 just to get the qdbus binary.
I can use qdbus-qt5, but it appears “org.kde.Shutdown” is no longer available, so that doesn’t help much either…
Can’t find any recent posts on the topic using commands available in Plasma / QT5. There is a topic on here in Tips & Tricks that uses org.kde.ksmserver but that throws a dbus error when invoking through qdbus-qt5.