[Kde-pim] Stuck on session restore
Lindsay Mathieson
lindsay.mathieson at gmail.com
Sun Aug 11 00:19:56 BST 2013
On Sat, 10 Aug 2013 07:24:00 PM Kevin Krammer wrote:
> When the application is started manually or when restoring?
> Or differently phrased: is the splash screen interfering with restore or
> session safe?
It triggers the saveState prematurely in both cases, but heres the logging I added from a
session restore (I also override saveState so I could see when it was invoked).
kleopatra(9494) main: Startup timing: 614 ms elapsed: UiServer created
kleopatra(9494) main: Startup timing: 614 ms elapsed: UiServer started
kleopatra(9494) main: !!!!!! Showing Splash
kleopatra(9494) Kleo::FileSystemWatcher::Private::onDirectoryChanged: "/home/test/.gnupg"
kleopatra(9494) KleopatraApplication::saveState: !!!!!!!!! saveState invoked
kleopatra(9494) main: !!!!!! Showing Splash finished.
kleopatra(9494) KleopatraApplication::newInstance: ignoreNewInstance = true
kleopatra(9494) Kleo::Command::~Command:
kleopatra(9494) Kleo::Command::Private::~Private:
kleopatra(9494) main: Startup timing: 630 ms elapsed: SelfCheck completed
kleopatra(9494) main: Startup timing: 688 ms elapsed: KeyCache loaded
kleopatra(9494) KleopatraApplication::newInstance: ignoreNewInstance = false
kleopatra(9494) KleopatraApplication::newInstance: !!!!!! Restoring Session
Looking through the code the order of events is:
* Start App
* Show Splash
* Init non UI stuff
* Close Spash
* newInstance
- Create Main Window
* app.exec
Given the Spash Window is the the only top level window when it is created and closed, I
presume thats what triggers the saveState.
>
> Is there any indication in the version control system's log supporting that
> theory?
I haven't plowed through that yet. Given that session restore was never implemented in
kde4 kleopatra is there any point?
--
Lindsay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20130811/66136321/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list