Log out from script in kde plasma 5

Hello.

From script i can reboot using the command :

shutdown -r now

or

reboot

Is there any command I can use in script to log out (leave) and jump to login screen (equivalent to :
app launcher/leave/Log Out )

Any help is welcome.

I have found a way to do it :

qdbus-qt5 org.kde.ksmserver /KSMServer logout 0 0 0

Which implies that you use KDE. Which you did not mention. Probably in the hope that people here are clairvoyant.

1 Like

please read the full question before commented