Here is a very helpful comment from Thomas Lübking from kde-bugs #341930: KWin is not responsible for restarting applications. This bug was *only* about not restoring window manager attributes (position, virtual desktop, etc.) on session restorage.
There're fundamental bugs in Qt5 that prevent (both, correct and entire) restoring of Qt5 applications, see * https://codereview.qt-project.org/#/c/113806/ * https://codereview.qt-project.org/#/c/113901/ * http://marc.info/?l=kde-core-devel&m=144832700109449&w=1 ** Description changed: - I use the setting "On Login : Restore previous session". I also use - several virtual desktops. - - When I open a KDE5 session, all windows are opened on the first virtual desktop. - With KDE4 all windows were restored on their virtual desktop, which is the expect behaviour. + KDE5/Qt5 does not support proper session restoration. ProblemType: Bug - DistroRelease: Ubuntu 15.04 - Package: kwin 4:5.2.2a-0ubuntu1 - Uname: Linux 4.0.0-040000-lowlatency x86_64 - ApportVersion: 2.17.2-0ubuntu1 - Architecture: amd64 - CurrentDesktop: KDE - Date: Tue Apr 21 22:46:17 2015 - SourcePackage: kwin - UpgradeStatus: Upgraded to vivid on 2015-04-20 (0 days ago) + DistroRelease: Ubuntu 15.10 ** Package changed: kwin (Ubuntu) => plasma-workspace (Ubuntu) ** Also affects: qtbase-opensource-src (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to qtbase-opensource-src in Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration Status in KDE Base Workspace: Fix Released Status in Qt: New Status in plasma-workspace package in Ubuntu: Confirmed Status in qtbase-opensource-src package in Ubuntu: New Bug description: KDE5/Qt5 does not support proper session restoration. ProblemType: Bug DistroRelease: Ubuntu 15.10 To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

