[Kde-kiosk] force logout from kde

Martijn Klingens klingens at kde.org
Tue Apr 29 21:10:32 CEST 2003


On Tuesday 29 April 2003 19:22, Neil Munro wrote:
> I want to be able to force a clean logout from KDE (e.g. from a root
> cron job or similar to a user called "kde") but I cannot get this to
> work reliably. I tried "su -c 'dcop ksmserver MainApplication-Interface
> quit' kde" as that dcop command seems to work from a terminal. Is there
> a "correct" way to do this from root?
>
> The reason is that I want to re-initialise all the KDE settings for each
> guest user. I'm using tar from a backup after logout to avoid problems
> with open files and this works fine, but I have to be able to logout
> automatically as I can't rely on the user doing it.

Does 'dcop --user kde ksmserver MainApplication-Interface quit' work for you?

It requires KDE 3.1 or newer, but I added that switch to dcop for exactly 
these purposes.

See dcop --help for some more info btw.

-- 
Martijn



More information about the kde-kiosk mailing list