Logout, reboot and shutdown using the terminal

Me too, just noticed one of my scripts failing:

qdbus org.kde.ksmserver /KSMServer logout 1 3 3
Cannot find '.logout' in object /KSMServer at org.kde.ksmserver

Any ideas??

Read the thread bro :sweat_smile:

1 Like

Thank you. I think these would make beautifully useful defaults on Plasma.

1 Like

Nice write up, good to see you sharing your knowledge have learnt a lot by just following some of your guides

2 Likes

It wasn’t mentioned here, so I’ll just add that
shutdown 0
works.

For restart:
shutdown -r 0

the 0 is how much time to wait until shutdown.