Terminate KDE session from command line

Boyan Tabakov blade.alslayer at gmail.com
Tue Nov 7 13:14:45 GMT 2006


On 6.11.2006 22:15, 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.

Thank you both very much! This was exactly what I was looking for...

-- 
Blade hails you...

The sun is sleeping quietly
Once upon a century
                --Nightwish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde/attachments/20061107/46c8a908/attachment.sig>
-------------- next part --------------
___________________________________________________
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