Bug 355707

Summary: Sessions saved automatically are not restored at new login
Product: [Unmaintained] ksmserver Reporter: Francesco <muziofg>
Component: generalAssignee: Lubos Lunak <l.lunak>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ag+services, kdebugs.anon134, wbauer1
Priority: NOR    
Version: 5.4.2   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: ~/.xsession-errors created when I login into plasma after an autosaved session is closed
~/.xsession-errors created when I login into plasma after I have previously saved manually a session

Description Francesco 2015-11-21 22:42:01 UTC
A great feature of KDE seems to be malfunctioning in Plasma 5: previous sessions are not restored.

I have created a new user to verify what happens:
I have tried both scenarios with some KDE apps opened (Dolphin, Systemsettings, Kate and Konsole), I have tried before to restore a previous session (default option when plasma configure a new user) and then a manually saved session.

sessions saved automatically are not restored at new login, no window left open are showed when plasma is completely loaded and ready.
after each logout new files (related to the software not closed) are created in ~/.config/session/ directory

session saved manually seems to works as expected


I attached two files:
xsession-errors_restore_autosaved (~/.xsession-errors created when I login into plasma after an autosaved session is done)
xsession-errors_restore_manualsaved (~/.xsession-errors created when I login into plasma after I have previously saved manually a session)

Reproducible: Always

Steps to Reproduce:
1. open system settings and be sure that the restore of previous session is activated
2. open some kde applications 
3. logout 
4. login

Actual Results:  
windows previously opened are not restored

Expected Results:  
windows previously opened must be restored
Comment 1 Francesco 2015-11-21 22:44:44 UTC
Created attachment 95645 [details]
~/.xsession-errors created when I login into plasma after an autosaved session is closed
Comment 2 Francesco 2015-11-21 22:45:26 UTC
Created attachment 95646 [details]
~/.xsession-errors created when I login into plasma after I have previously saved manually a session
Comment 3 kdebugs.anon134 2016-01-01 15:58:38 UTC
I am having also having the problem where if I use "restore last session", then most programs aren't restored at all when logging back in. I rely HEAVILY on the "restore last session" function, so this is a VERY significant problem for me, so much that it is preventing me from permanently moving to Plasma 5. This is very disappointing. :(

My System:
openSUSE Leap 42.1 for x86_64
plasma5-workspace v5.5.2-158.1
KDE Platform Version 4.14.10

Reproducible: Always
Comment 4 Wolfgang Bauer 2016-02-22 14:09:31 UTC
Should be fixed in Plasma 5.6 when built against Qt 5.6.
This was no bug in ksmserver btw, but is caused by a wrong behavior in Qt and only affected Qt5/KF5 based applications. In KDE4 this was "workarounded" in KDE's libraries, this has been done now for KF5 as well.

For openSUSE Leap 42.1 we will try to release the necessary fixes as official update, see https://bugzilla.novell.com/show_bug.cgi?id=955280 for that.

*** This bug has been marked as a duplicate of bug 354724 ***