Am Mittwoch, 17. Januar 2018 schrieb Roel
Wagenaar:
Is there a method to logout from a session from a
script?
Now at 23.00 my desktop does a tdm-trinity stop, followed by a shutdown, I
would like to logout first an then stop trinity.
You could do the following, depending on what you want to achieve:
Just perform logout, if TDE is configured to shutdown after logout, it will
turn off the computer (in most cases), but you will have to run it some
minutes before shutdown:
$ dcop ksmserver ksmserver logout
Much to my surprise a very ancient solution still works on tde:
dcop kdesktop default logout
DEpending on the config for standardlogout, of course.
Roel Wagenaar,