trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: January 2018

Re: [trinity-users] Session logout from script

From: Slávek Banko <slavek.banko@...>
Date: Thu, 18 Jan 2018 19:24:57 +0100
On Thursday 18 of January 2018 11:31:05 Roel Wagenaar wrote:
> "Dr. Nikolaus Klepp" <office@...> wrote:
> > 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
>
> Thanks for your answer.
>
> This unfortunately ends in an error message;
>
> 	roel@dt5:~$ dcop ksmserver ksmserver logout
> 	Not enough arguments (expected 0, got 0).

For details see:

https://andrejserafim.wordpress.com/2008/05/16/kde-shutdown-logout-restart/

Cheers
-- 
Sl�vek