From kde-devel Sun Oct 21 17:08:05 2007 From: Lubos Lunak Date: Sun, 21 Oct 2007 17:08:05 +0000 To: kde-devel Subject: Re: killing KApplication Message-Id: <200710211908.05550.l.lunak () suse ! cz> X-MARC-Message: https://marc.info/?l=kde-devel&m=119298655617306 On ne 21. října 2007, Aaron J. Seigo wrote: > On Sunday 21 October 2007, Дмитрий Барышев wrote: > > Hi. How can I determing that application was closed by user or killed by > > logout process ? Not easily. The die message from the session manager is translated by Qt to a normal quit. You'd have to specially handle all the user cases or write your own libSM code to handle the die message differently. However, you shouldn't need this anyway, it sounds like you're just trying to come up with a hack for something. What is it you're actually trying to do? > bool KApplication::sessionSaving(); > > the saveState() and commitDataRequested() methods in QApplication may also > be of interest. That's unrelated. Session save usually takes place right before logging out, but those two are separate things. -- Lubos Lunak KDE developer -------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org Lihovarska 1060/12 tel: +420 284 028 972 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http//www.suse.cz >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<