[kde-linux] "dcop ksmserver" question

Kevin Krammer kevin.krammer at gmx.at
Fri Sep 8 09:59:47 UTC 2006


On Monday 04 September 2006 21:17, Donatas G. wrote:
> I need dcop commands for my kommander app, but I cannot figure out what the
> parameters to dcop ksmserver mean exactly. There are three parameters, what
> do they mean?
>
> #this sort of shuts down  computer:
> dcop ksmserver default logout 0 -1 -1
>
> #this one reboots
> dcop ksmserver default logout 0 1 0
>
> How do I simply end current session?

Try 0 0 0
The parameters are not documented, they are basically the numeric values of 
the session flags descibed in the KApplication API documentation

> More questions:
> Is there a way to use dcop to restart kdm without using administrator
> rights?

No idea, sorry

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtcentre.org
-------------- 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-linux/attachments/20060908/397c2923/attachment.sig>


More information about the kde-linux mailing list