[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Unkillable process and force logout
From:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2005-04-04 11:32:58
Message-ID: 200504041332.58826.l.lunak () suse ! cz
[Download RAW message or body]

On Monday 04 of April 2005 12:46, Andras Mantia wrote:
> Andras Mantia wrote:
> > The problem is that this doesn't do anything (no logout is performed).
> > This is because the counter application itself running as root. :-(
>
> By testingmore it seems that the logout is cancelled not because it's
> running as root, but because it returns false in queryClose. But I need to
> return false, otherwise the user can simply close the application.
> So how can I write an application that cannot be closed by the user, but it
> doesn't disturb the logout process??

 Don't do any session management at all ( unsetenv( "SESSION_MANAGER" ); 
before KApplication ctor ), or use KApplication::sessionSaving().

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak@suse.cz , l.lunak@kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic