Re: Terminate KDE session from command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: pgpXGp2UXW9H6.pgp
Description: PGP signature

___________________________________________________
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.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux