Where are session stored?

I am struggling with session saving under Wayland. It is not working as it should, not in “saved at shutdown” and not in “saved manually”. Some applications are not started, most are started on wrong desktops (I am using four). So I am looking for the place where the session is stored. All I found on the web is for older Plasma versions - I am using Plasma 6.2 Beta. Where are the sessions stored? Maybe I can manually edit the missing settings in the text file…

Unless you are a dev, this is unlikely something you can fix yourself. It’s a known issue for Wayland sessions.

See here: https://bugs.kde.org/show_bug.cgi?id=436318
And here: https://community.kde.org/Plasma/Wayland_Known_Significant_Issues

Thank you for this. For me its a major bug, and I have found issue reports from 2022. Looks like most Plasma users are still using X instead of Wayland.

1 Like

@df8oe

~/.local/state/plasmasessionrestorestaterc

Maybe I’m ignorant and/or was absent from the ‘meeting’.

I hardly think that’s the case at all. Yes, there are some issues with Wayland. Particularly with Nvidia. But not everyone uses Nvidia. And I don’t even think most Nvidia users are using X. While there are a decent amount of people with Wayland issues, I don’t think most have ditched Wayland to go back to X.

@eso @UncleSpellbinder

The issue isn’t just Wayland or KDE, but both together. Saving a Plasma 6 user session while logged into a Wayland session is the issue.

If users want to keep their Plasma 6 user session, they need to use X11 for the moment.

This is, of course, a huge problem for those who are using Wayland for some other reason that they find to be important, while also seeing saving user sessions as important.

This issue has come up on this forum before btw: KDE Plasma 6.0.5 Session Restore does not work - #2 by ddnn

Plasma 5 works as expected, even with my Nvidia card.

I get that. But the blanket statement of “Looks like most Plasma users are still using X instead of Wayland” was a bit over-the-top.

Well, the OP may not actually be wrong. Most Linux users use Ubuntu. If they are using Plasma, they are very likely also using X11.

Just saying. :wink: :person_shrugging:

1 Like

@df8oe
According to my tests (fastfetch shows KDE Plasma 6.1.90 / Wayland) and


I have 2 monitors opened 5 applacations ran Application Launcher ‘Save Session’ but it was not finished(?) because I was able to exit only by sudo reboot.
In the next session all application were restored but not at their original positions.
Perhaps Window Rules may help with Detect Windows Properties for the time being.

I would disagree with that. I am using Wayland both on Nvidia and amdgpu without much of an issue. Sure there are some issues with Wayland on certain hardware. I don’t save sessions. :wink:

“most users” are only a blind guess. And if the issue “sessions are not stored correctly” is important depends on usage profile. I do have a production environment which has started about 15 applications on different desktops and desktop positions after login - every morning I switch on my PC. So it bothers me that I have to correct for a minute every morning the same things that should go automatcally. Of course it does not kill me and I will stay at Wayland in spite of this. Wayland now has more advantages than disadvantages for me. But I am astonished that this issue does survive since months… I have amdgpu and this is the only issue I am observing.
Things like “internationalizations are partwise broken” (German and English mixed in some applications in 6.2 Beta) does not bother me. I can read both languages and so no problem :wink:

@eso:
interesting! There are only the applications saved which have to be started. There must be other locations where parameters (which dektop and position and width of window on this desktop) are stored…