Bug 419354 - Saved session not getting restored correctly
Summary: Saved session not getting restored correctly
Status: RESOLVED DUPLICATE of bug 336990
Alias: None
Product: ksmserver
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-29 02:45 UTC by Rajinder Yadav
Modified: 2020-09-29 16:39 UTC (History)
2 users (show)

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


Attachments
~/.config/ksmserverrc (3.98 KB, text/plain)
2020-03-30 11:04 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-03-29 02:45:57 UTC
SUMMARY

"Restore previous session" and "Restore manually saved session" fail to save all open windows. I am currently saving my session manually and I notice some application fail to restore after session is saved and a reboot is performed.

Also with multiple desktop, some of the browser window don't open in the respective desktop. For firefox multiple browser windows will open in the same desktop.

Failing to restore for me are following that fail to reopen on new session.

1. Konsole
2. VSCode Insider (https://code.visualstudio.com/insiders/)



STEPS TO REPRODUCE
1. Setting -> Start up & shutdown -> Desktop session -> Restore manually saved session
2. Setting -> Virtual Desktop -> Create 4 desktops
3. Open Konsole, multiple instance of vscode (desktop1)
4. Open multiple firefox on different desktops
5. From desktop toolbar -> Leave -> Save Session
6. Reboot system

OBSERVED RESULT

Konsole instances fail to re-open
VSCode instances fail to re-open
Firefox instances seem to get restored to wrong desktops

EXPECTED RESULT

Add saved windows in session should re-open in the respective desktop.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Tumbleweed
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2020-03-29 14:34:34 UTC
We need different bugs for different things.

Lets focus this on konsole.

Please include your ~/.config/ksmserverrc

and any ~/.config/session/konsole_   files
Comment 2 Rajinder Yadav 2020-03-30 11:04:34 UTC
Created attachment 127103 [details]
~/.config/ksmserverrc
Comment 3 Rajinder Yadav 2020-03-30 11:06:35 UTC
There is no ~/.config/session/konsole_ file
Comment 4 Bug Janitor Service 2020-04-14 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Christoph Feck 2020-04-14 14:31:59 UTC
Requested information was added with comment 2 and comment 3; changing status for inspection.
Comment 6 Nate Graham 2020-09-29 03:36:06 UTC
Is this still happening for Konsole? Is it reproducible?
Comment 7 Rajinder Yadav 2020-09-29 10:06:25 UTC
I just tried this now with the latest updates.

1. Firefox is getting saved now, but with multiple windows and multiple desktop, two of the windows keep getting saved to the wrong desktop even after I saved the session manually.

2. Konsole failed to restored.
3. LibreOffice Calc failed to restore.
4. LibreOffice Write failed to restore.

Kate, Spectacle, Thunderbird are now getting restored.

Yes this happens every time for me.
Comment 8 Rajinder Yadav 2020-09-29 10:10:46 UTC
In previous post when I said updated, I meant updated openSUSE Tumbleweed.

KDE Plasma: 5.19.5
KDE Framework: 5.74.0
Qt: 5.15.1
Comment 9 Nate Graham 2020-09-29 16:08:14 UTC
#1 is tracked with another bug: Bug 336990. Let's mark it as a duplicate of that.

#2 is the fault of Konsole. You should file a bug on Konsole.

#3 and #4 are the fault of LibreOffice. See https://bugs.documentfoundation.org/show_bug.cgi?id=129370

*** This bug has been marked as a duplicate of bug 336990 ***
Comment 10 Rajinder Yadav 2020-09-29 16:39:07 UTC
Sounds good, go ahead and close as resolved, thanks.