KDE Plasma and issue with Session Restore: Can you disable Session Restore before logging into user account?

I’m certain that there’s an issue with one of my user accounts from logging in, and I think it has to do with KDE Plasma’s Session Restore.

System specs:
Ryzen 7 4500u
32GB DDR4
2TB M.2 NVMe 4x4
NixOS 24.11

I was recently using my Linux drive, and had a lot of windows open in my user account, until my laptop decided to freeze and crash. I did a hard reset, rebooted the device, and after logging in with my password, as all my previous programs open due to Session Restore, it starts to freeze the desktop.

I’m able to switch to a virtual console via “ctrl+alt+f1-f6” keys, but I’m unable to login as my user; it gives me some error code.

I’ve been able to log into other user accounts with no issues, and run everything as normal. But my particular user session that crashed is unable to log in properly due to previous programs re-opening.

I have some temporary ideas to fix this (deleting system programs that will re-open during login and session restore, switching from Plasma to GNOME, and etc.), but I wanted to ask folks here to see if they have any other ideas I can attempt to fix this issue.

I think disabling or removing Session Restore before I log in would fix this issue.

Any ideas?

I found an easy solution: I booted to an previous system generation in NixOS, and I was able to disable the “session restore” feature from KDE Plasma’s System Settings.

And I was right: session restore was causing the issue.

I’ll try to report a ticket in the Plasma GitHub. I’d probably recommend everyone to NOT use Session Restore by default.

1 Like