Bug 457970

Summary: When kwin_wayland crashes and takes down all your apps, ksmserver should restart and restore them
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: Session ManagementAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: kde, natalie_clarius
Priority: NOR Keywords: wayland-only
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2022-08-16 20:32:44 UTC
Git master everything KDE on Fedora 35.


STEPS TO REPRODUCE
1. Use systemd boot.
2. Make kwin_wayland crash, or else kill it yourself.

OBSERVED RESULT
Plasma restarts, but with no apps open that were open before, because ksmserver didn't restart too.

EXPECTED RESULT
ksmserver also restarts and re-opens all the apps you had open at the moment KWin crashed.

ADDITIONAL INFORMATION
If I manually run `systemctl --user restart plasma-ksmserver.service`, ksmserver launches and immediately restores all the apps that went down when KWin crashed. So it would be nice for this to happen automatically, somehow.
Comment 1 Nate Graham 2022-08-16 20:37:47 UTC
Several other background-ish services also fail to restart in this case:

● plasma-baloorunner.service                                                                       >
● plasma-krunner.service                                                                           >
● plasma-kscreen-osd.service                                                                       >
● plasma-ksmserver.service                                                                         >
● plasma-kwallet-pam.service 

Could they all be fixed in a generic way, or would this require something to specially fix each of them?
Comment 2 David Edmundson 2025-09-22 09:26:35 UTC
This isn't feasible.