Terminate KDE session from command line

kitts kitts.mailinglists at gmail.com
Fri Dec 22 17:33:58 GMT 2006


On Tuesday 07 November 2006 01:45 IST, Kevin Krammer wrote:
> On Monday 06 November 2006 18:06, kitts wrote:
> > On Monday 06 November 2006 21:20 IST, Boyan Tabakov wrote:
> > > What is the propper way to terminate the kde session, running on
> > > specific display from command line? Is there some dcop call that
> > > should be made? Or a signal should be sent to specific process?
> >
> > Yes! there is a dcop call. I think it is
> >       dcop ksmserver ksmserver logout x x x
> > I cannot recollect precisely. You may experiment with the parameters or
> > lookup google. :-)
>
> The values are documented as part of the KApplication class:
> http://tinyurl.com/y6a2tw
>
> the first value is ShutdownConfirm, the second is ShutdownType and the
> last one is ShutdownMode
>
> A comination which might be good for your use case could be
> 0 0 0
> (no confirmation, no shutdown/logout only, schedule shutdown)
>
> or
>
> 0 0 2
> (no confirmation, no shutdown/logout only, force now)
>
> It could be (not sure though) that the last value is not important once
> you say "logout only" for the second option.

Is there also an option to suspend to disk  and suspend to RAM? The above 
link has no mention of it.

I use Kubuntu 6.10 and here i believe suspend happens using HAL. What's the 
command to perform the action?
-- 
Cheers!
kitts
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list