Bug 450756 - Saving sessions manually twice - without opening new windows inbetween - deletes applications' session files
Summary: Saving sessions manually twice - without opening new windows inbetween - dele...
Status: REPORTED
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.2
Platform: OpenSUSE Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-23 15:10 UTC by Andreas Kilgus
Modified: 2022-10-07 18:56 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Session files after user having saved sessions (2.28 KB, text/plain)
2022-02-23 15:10 UTC, Andreas Kilgus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kilgus 2022-02-23 15:10:17 UTC
Created attachment 147075 [details]
Session files after user having saved sessions

SUMMARY
If you opt for manual session saving and save your current session twice (sometimes a third save will trigger the effect) without opening at least one new window between the saves, the individual session files of your current session's applications will be deleted (s. attachment), leaving "kwin_saved_by_user_" the only remaining session file. If you afterwards restore this session, e. g. all your dolphin windows will be reopened - but displaying the default directory, not the one they were presenting in your session (you thought to have saved).

STEPS TO REPRODUCE
1. Change session management to restore manually saved session
2. Open some windows
3. Save session
4. Have a look at ~/.config/session: kwin and serveral applications saved their state
5. Save session
6. Save session again (optionally, just to be sure you really saved ;) )
7. Logout
8. Login

OBSERVED RESULT
9. Your session is not completely restored, applications' states are lost

EXPECTED RESULT
All applications supporting this return to their previous state (browser showing URLs, okular displaying files, gwenview showing certain images, …).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Comment 1 Markus Elfring 2022-03-09 09:30:12 UTC
I am also curious how this issue will evolve further.
Comment 2 Manny 2022-10-07 18:56:08 UTC
(In reply to Markus Elfring from comment #1)
> I am also curious how this issue will evolve further.

I have the same issue on the latest ubuntu LTS,  plasma 5.24.6, framework 5.92.0. I only noticed the problem with konsole 21.12.3,
the session files are lost on the second "save", so windows come up on restart, but (for example) tab configuration is lost.