Bug 170813

Summary: konqueror sessions are sometimes duplicated after killing KDE (I think that is when)
Product: [Applications] konqueror Reporter: Anders Lund <anderslund>
Component: generalAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: adawit, brian, jani-matti.hatinen, kmm
Priority: NOR    
Version First Reported In: 4.1.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Anders Lund 2008-09-10 17:42:20 UTC
Version:           4.1.1 (KDE 4.1.1) (using 4.1.1 (KDE 4.1.1), Kubuntu packages)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.24-16-generic

... which is irritating, esp. since it includes the request for confirming weather to restore the session.
Comment 1 Jani-Matti Hätinen 2009-06-04 14:57:51 UTC
I get this on both Gentoo and Debian unstable on kde-4.2.4, even with a clean logout&login.

In every login I get the konqueror session restore dialog, even if the logout was clean (no konq crash window or anything indicating that konqueror didn't close cleanly). If I choose to restore the crashed session, I get two windows for every site that was opened at logout, if I choose not to restore the crashed session, it works like it should.
Comment 2 Brian DeRocher 2009-06-14 20:48:12 UTC
I don't know what's doing it, but when i login, i sometimes get 2 windows for every one that was open before.
Comment 3 Jani-Matti Hätinen 2009-06-15 11:13:25 UTC
The problem is probably that KDE session management restores one set of konqueror windows, while konqueror session management restores another set. With an unclean logout (e.g. crash or power failure) the KDE session restores the windows from the last clean logout, while konqueror session tries to restore the uncleanly closed session.

While this isn't really that elegant, it's at least somewhat understandable.

However, my problem on KDE-4.2.4 in both Debian and Gentoo is that konqueror session management tries to restore a crashed session on every login. Even after a clean logout. To get rid of the problem I've simply disabled konqueror session management for now, but a better solution wouldn't hurt.

IMHO a good long-term solution might be to add crash recovery support into KDE session management and to port konqueror to use it as well. That way there wouldn't be two different sessions confusing the user, and other programs might be able to utilise the same crash recovery functionality as well.
Comment 4 km 2009-09-15 18:37:28 UTC
duplicate? https://bugs.kde.org/show_bug.cgi?id=183667
Comment 5 Dawit Alemayehu 2011-12-27 21:56:22 UTC
Can any of you verify this bug still exists with the latest version of KDE, v4.7.4 or higher for you ? I cannot personally reproduce it.
Comment 6 Brian DeRocher 2011-12-28 01:22:59 UTC
The bug still exists in Konqueror 4.7.2 (debian experimental).  I went to a wikipedia page yesterday.  My laptop ran out of juice and crashed.  Signed back in and now it appears in two windows.