SUMMARY Occasionally, session restore fails to restore the application state. All the windows are opened on the right activities and virtual desktops, but the applications themselves (e.g. Dolphin, Kate) do not restore their state. When this occurs, I see error messages like the following in my system logs: ``` Aug 08 10:02:54 kishore-thinkpad-e495 dolphin[9408]: Qt: Session management error: Authentication Rejected, reason : MIT-MAGIC-COOKIE-1 authentication rejected ``` (and many identical errors coming from Kate, Konsole etc.) STEPS TO REPRODUCE Unknown; issue only happens intermittently. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.1.3 KDE Frameworks Version: 6.4.0 Qt Version: 6.7.2 Kernel Version: 6.6.42-1-lts (64-bit) Graphics Platform: X11 ADDITIONAL INFORMATION May be related to bug 491130, but the reporter there describes different behaviour (that some windows are not restored). They do not have the error message I mentioned in their logs. Moreover, logging out and logging in after this bug occurs does not restore the previously saved session for me (just opens with an empty session). If there is additional information I can provide that would help debug the issue, please let me know.