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.
Can you run: `iceauth list` at a time when it's working and not working. Can you also check if the path it lists exists on disk: i.e if you see: ICE "" local/archlinux:@/tmp/.ICE-unix/1241 MIT-MAGIC-COOKIE-1 b53dad8d49d42cc7d3f0025d22f0215c that there's a socket at /tmp/.ICE-unix/1241
๐๐งน โ ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
Just happened again... But the workaround of disabling saving on logout and saving the session manually from time to time really helps. So if the bug occurs, you just have to logout and login. See here for more details: https://bugs.kde.org/show_bug.cgi?id=487912#c46
Marking as duplicate of https://bugs.kde.org/show_bug.cgi?id=491130 for now; will reopen if the issue recurs with a version of Plasma where that is fixed. *** This bug has been marked as a duplicate of bug 491130 ***