https://bugs.kde.org/show_bug.cgi?id=488520
--- Comment #7 from [email protected] --- (In reply to Oliver Freyermuth from comment #6) > (In reply to imaginator from comment #5) > > (In reply to Oliver Freyermuth from comment #3) > > I rather suspect that under certain circumstances a mismatch occurs between > > the files referenced in ~/.config/ksmserverrc and the status-files in > > ~/.config/session. An incomplete ksmserverrc (if you mean that by "cut > > off") may indeed be a cause. So if this Heisenbug strikes again a closer > > look at ksmserverrc and the files in /session may be worthwile. > > Yes, in fact I mean "incomplete" when mentioning "cut off", as if the > program writing out the file was terminated hard while writing... > > I had the bug occur again on a system with Plasma 6.1, with wayland this > time (but the system also uses openrc, no systemd). Full ksmserverrc: > ``` > [$Version] > update_info=ksmserver_update_loginMode_value.upd: > ksmserver_update_loginMode_value_default_enum > > [General] > screenCount=1 > > [LegacySession: saved at previous logout] > count=0 > > [Session: saved at previous logout] > clientId1=10ab6d6731000147059923000000123150016 > clientId2=10ab6d6731000172641278200000120020004 > count=2 > program1=/usr/bin/gkrellm > program2=/home/olifre/.dropbox-dist/dropbox-lnx.x86_64-207.4.5821/dropbox > restartCommand1=/usr/bin/gkrellm,--sm-client-id, > 10ab6d6731000147059923000000123150016 > restartCommand2=/home/olifre/.dropbox-dist/dropbox-lnx.x86_64-207.4.5821/ > dropbox,-session,10ab6d6731000172641278200000120020004_1726451308_783776 > restartStyleHint1=0 > restartStyleHint2=0 > userId1=olifre > userId2=olifre > ``` > The session had KeepassXC and some Konsole terminals open when I shut down, > but this was not stored in the ksmserverrc. > > Checking the "session" directory, what should I be looking for? Dropbox and > gkrellm don't save any state, and the Konsole sessions were not persisted. I > only find one file in the "session" directory matching in time with the last > shutdown of the system: > ``` > -rw------- 1 olifre olifre 10254 16. Sep 03:48 'kwin_saved at previous > logout_' > ``` > Nothing else was saved. Information on how Plasma's session-restore actually works is hard to come by. The gist of what I've figured out so far: for a successful session-restore there have to be files in ~/.config/session which describe the (KDE-) programs' state at logout and whose ID must match those of the "restartCommand*" in ~/.config/ksmserverrc. The files are created by the programs when a session ends and are used by ksmserver to recreate their state at login. (The files should be purged at logout ("discardCommand*") but that doesn't seem to work consistently.) If either the restart-command in ksmserverrc or the matching file is missing, session-restore for that program will fail. So, according to your observation we should look for both, the restart-command and the matching file. That ksmserverrc was incomplete and the files for Konsole were not created at all is important information and should give KDE-devs enough of a clue already which of the changes in plasma-workspace-5.27.11.1 may cause the problem. -- You are receiving this mail because: You are watching all bug changes.
