I am not talking about shutdown
and reboot
commands. I want to initiate the same routine from command line that would be performed if I would press the logout/reboot/shutdown button inside the KDE desktop.
Ubuntu – How to safely shutdown/reboot/logout KDE from the command line
command linekderebootshutdown
Best Answer
Note that this answer was written in 2010 for KDE 4. It may not apply to modern systems.
For kde4:
The three integer parameters are the
confirm
,sdtype
andsdmode
arguments to KWorkSpace::requestShutDown. Their values are explained at the top of the page. Since the page has disappeared, here are the values (still present in a cache).