| Summary: | Restored session does not restore any previously opened apps after upgrade to 6.5 beta from openSUSE 15.6 OBS. | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Vadym Krevs <vkrevs> |
| Component: | Session Management | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | VERIFIED FIXED | ||
| Severity: | normal | CC: | kde, kde, kdedev, natalie_clarius, nate, notmart |
| Priority: | VHI | Keywords: | regression |
| Version First Reported In: | 6.4.90 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/ccd51e44ad80c847f4e9197000846d7d48da1aed | Version Fixed/Implemented In: | 6.5.0 |
| Sentry Crash Report: | |||
|
Description
Vadym Krevs
2025-10-02 17:33:39 UTC
This is a clone of https://bugs.kde.org/show_bug.cgi?id=498782. Created as requested in https://bugs.kde.org/show_bug.cgi?id=498782#c4 Apologies, forgot to update SOFTWARE/OS VERSIONS . Operating System: openSUSE Leap 15.6 KDE Plasma Version: 6.4.90 KDE Frameworks Version: 6.18.0 Qt Version: 6.9.2 Kernel Version: 6.4.0-150600.23.70-default (64-bit) Graphics Platform: X11 Graphics Processor: NVIDIA GeForce RTX 4060 Ti I can reproduce this on git-master. I had these opened: Konsole with tabs Firefox with tabs Vivaldi with tabs System Monitor Dolphin with tabs After logging back in, none of these were started do new sessions get saved now? ie was it lost only the session that was there prior the upgrade, or doesn't save at all sessions even now? Nope, new sessions aren't saved either. hmm, session restore appear to be working as expected for me on current git master. If it helps, when I installed beta 2 of plasma 6.3 (https://bugs.kde.org/show_bug.cgi?id=498782#c2) my old, pre-6.3 beta1, session just magically got restored. Might be worth checking what changed between 6.3 beta 1 and 2 in session management code. Does ~/.local/state/plasmasessionrestorestaterc look reasonable to you? What happens if you run libexec/plasma-fallback-session-save ? # the contents of the file with Brave, Kate, konsole and system monitor running. $ cat ~/.local/state/plasmasessionrestorestaterc [0] appId=brave-browser.desktop # Now I run plasma-fallback-session-save $ /usr/lib/plasma-fallback-session-save # New file contents: $ cat /home/vadymk/.local/state/plasmasessionrestorestaterc [0] appId=brave-browser.desktop [1] appId=org.kde.kate.desktop [2] appId=org.kde.konsole.desktop [3] appId=org.kde.plasma-systemmonitor.desktop # Log off/log back in - only Brave is restarted. File contents after logging back in: $ cat /home/vadymk/.local/state/plasmasessionrestorestaterc [0] appId=brave-browser.desktop A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5896 Git commit 669edd5a7d8a44a530ea4bdb26d98612a8f0adef by David Redondo. Committed on 07/10/2025 at 09:46. Pushed by davidedmundson into branch 'master'. ksmserver: Fix saving clients The condition of the form without subsessions was effectively if (false || a) and after dropping subsessions should have been dropped instead of if (a) Amends 16e0f29123d00fe76c9002809360bfc6f16300f4 M +0 -3 ksmserver/server.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/669edd5a7d8a44a530ea4bdb26d98612a8f0adef Git commit ccd51e44ad80c847f4e9197000846d7d48da1aed by Nate Graham, on behalf of David Edmundson. Committed on 07/10/2025 at 22:23. Pushed by ngraham into branch 'Plasma/6.5'. ksmserver: Fix saving clients The condition of the form without subsessions was effectively if (false || a) and after dropping subsessions should have been dropped instead of if (a) Amends 16e0f29123d00fe76c9002809360bfc6f16300f4 (cherry picked from commit 669edd5a7d8a44a530ea4bdb26d98612a8f0adef) Co-authored-by: David Redondo <kde@david-redondo.de> M +0 -3 ksmserver/server.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/ccd51e44ad80c847f4e9197000846d7d48da1aed Updated to Plasma 6.5 rpms from opensuse build service and can confirm that sessions are being restored correctly. Thank you for fixing this! That's great to hear, thanks for letting us know. |