SUMMARY STEPS TO REPRODUCE 1. Setting -> Start up & shutdown -> Desktop session -> Restore manually saved session 2. Setting -> Virtual Desktop -> Create 4 desktops 3. Open multiple version of VSCode in different desktops 4. From desktop toolbar -> Leave -> Save Session 5. Reboot system OBSERVED RESULT VSCode is got getting restored. EXPECTED RESULT VSCode should be restored to it's desktop. SOFTWARE/OS VERSIONS Linux/KDE Plasma: OpenSUSE Tumbleweed KDE Plasma Version: 5.18.4 KDE Frameworks Version: 5.69.0 Qt Version: 5.14.1 ADDITIONAL INFORMATION This is related to this bug, I was asked to open a separate bug for each windows not getting restored with session enabled.
Please attach your ~/.config/ksmserverrc and also ~/.config/session/kwin_[some identifier]
Created attachment 128229 [details] ksmserverrc
Created attachment 128230 [details] kwin file
vscode isn't listed in ksmserverrc. We can only restore clients compliant to X Session Management spec. Please report this issue to Visual Studio Code developers.
Thanks it has been reported to the vscode team, they are looking into it. For what it is worth, KDE already knows all the windows that are open at anyone time and on what desktop. The session management is junk imho, as I have keep filing bugs for every individual window/app. I think KDE need to rethink it's own session management design.
Just because we know what window should be placed where does not mean we know how to re-launch the app. That's why the app has to tell us what we need to do to restore it, which VS Code does not appear to do. It's also not our design, it's an (ancient) X protocol.