Re: Terminate KDE session from command line

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

 



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.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

Attachment: pgpbBmmlea0kc.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