Bug 509848

Summary: The previous virtual desktop is always restored on login even if settings are set to always start with an empty session
Product: [Plasma] kwin Reporter: JR <zorael>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 6.4.5   
Target Milestone: ---   
Platform: EndeavourOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description JR 2025-09-23 23:27:36 UTC
SUMMARY
Upon logging in, you will be placed on the virtual deskop that was active when the last session ended, even if the Desktop Session settings are not set to restore the previous session.

STEPS TO REPRODUCE
1. Have more than one virtual desktop
2. System Settings -> Session -> Desktop Session -> Session Restore: Start with an empty session
3. Change to a virtual desktop that is not the obvious "default" desktop
3. Log out
4. Log back in

OBSERVED RESULT
The session does not start on the default virtual desktop, but instead restores the previous state as it was when you logged out.

EXPECTED RESULT
The session starts empty and places you at the default desktop.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: EndeavourOS/Arch x86_64
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
I realise it's possible the "Start with an empty session" setting only refers to programs to autostart, but is restoring virtual desktop intended behaviour in any other case than when you want to restore a session?

Wayland.
Comment 1 David Redondo 2025-09-24 11:51:27 UTC
Session restore has nothing to do with virtual desktop