Open applications are not being retained across restarts/shutdowns in LEAP

I have (in configure desktop -> Startup & Shutdown -> Desktop Session) set “Restore previous session on login” but every time I start the computer up, all my apps are closed and the windows are gone. How do i get it to retain them?

This has been dicussed a few times already.

To sum it up: There is a bug in Qt5 that makes Qt5 (KF5) applications quit too soon on logout so they are not regarded as running any more by the session management. Depending on your system this might always happen, randomly happen, or not happen at all.

Non-Qt5 applications should correctly be restored though.

A possible workaround: switch to “Start with a previously saved session” in KDE’s session management settings (“Configure Desktop”->Startup and Shutdown->Session Management), and then call “Save Session” in the Session/Powersaving submenu in the application menu before logging out. A manually saved session will be restored correctly, also Qt5/KF5 applications.
Note that you have to logout once after changing the setting for the “Save Session” entry to appear.

Or only use non-KF5 applications.

If we’re lucky this will be fixed in Qt 5.6… A pending review is here:
https://codereview.qt-project.org/#/c/142232/

Thank you!

How does a bug like this make it all the way to release? It seems like something that would be noticed right away if you’re testing it.

I went into Configure Desktop and set it to “restore manually saved session”, logged out and logged back in but there’s no submenu or save session anywhere. Where would this be?

Apparently nobody (at least not the developers) uses session management any more.

Suspend/Hibernate does a similar thing and restores the session exactly like it was.

In the application menu’s “Session/Powersaving” sub menu (the last one), as I wrote.