Bug 421035 - VSCode is not getting restored using Saved sessions.
Summary: VSCode is not getting restored using Saved sessions.
Status: RESOLVED NOT A BUG
Alias: None
Product: ksmserver
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-05 02:01 UTC by Rajinder Yadav
Modified: 2020-05-24 10:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
ksmserverrc (3.98 KB, text/plain)
2020-05-07 11:44 UTC, Rajinder Yadav
Details
kwin file (3.46 KB, text/plain)
2020-05-07 11:46 UTC, Rajinder Yadav
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rajinder Yadav 2020-05-05 02:01:09 UTC
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.
Comment 1 Kai Uwe Broulik 2020-05-06 08:09:57 UTC
Please attach your ~/.config/ksmserverrc and also ~/.config/session/kwin_[some identifier]
Comment 2 Rajinder Yadav 2020-05-07 11:44:56 UTC
Created attachment 128229 [details]
ksmserverrc
Comment 3 Rajinder Yadav 2020-05-07 11:46:10 UTC
Created attachment 128230 [details]
kwin file
Comment 4 Kai Uwe Broulik 2020-05-07 12:09:05 UTC
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.
Comment 5 Rajinder Yadav 2020-05-24 01:10:54 UTC
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.
Comment 6 Kai Uwe Broulik 2020-05-24 10:36:38 UTC
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.