Bug 1226110

Summary: After plasma upgrade sessions are no longer saved and restored when logging out
Product: [openSUSE] openSUSE Distribution Reporter: Jim Taylor <jhtaylor20>
Component: KDE Workspace (Plasma)Assignee: E-Mail List <opensuse-kde-bugs>
Status: REOPENED --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: akontsevich, asoraruf, bernet, fabian, fvogt, hpj, jonzn4suse, meissner, swalter0306, wytze, zb4ng
Version: Leap 15.5   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Leap 15.5   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jim Taylor 2024-06-08 12:57:06 UTC
After the plasma upgrade to plasma5-workspace|5.27.9-bp155.2.6.1 on 06/06/24 sessions are no longer saved on logging out or restored on logging back in.  Login comes up with an empty session.

Changing Desktop Session from  "on last logout" to something else and back makes no difference.

Although I don't use it "When sessions was manually saved" does not seem to be working correctly either.  If you check it and log out with two kconsole windows open when you log back in it asks for roots password for both and opens them as root instead of the user.
Comment 1 zb4ng2 2024-06-09 08:16:59 UTC
I can positively confirm this: 
When I logged in, dolphin didn't start at all (even though I added it to the AutoStart section). It is not possible to start dolphin via the menu.
The konsole windows didn't show up either, but it was possible to start it via menu. From there I was able to start dolphin, but the following error showed up: "Qt: Session management error: None of the authentication protocols specified are supported" and dolphin had lost the folders.
The same happened to okular: all the okular windows were lost, but I was able to start okular.
This happened in LEAP 15.5, as well as Tumbleweed, but with a small difference: All the dolphin windows started, but all the folders were set to "home".
Comment 2 hui 2024-06-09 14:01:20 UTC
*** Bug 1226121 has been marked as a duplicate of this bug. ***
Comment 3 Alessandro Soraruf 2024-06-09 16:54:17 UTC
NB.
The patch involved is "openSUSE-2024-152" that I think should be recalled on Leap. It's a SLES backport, and maybe it works well on SLES, but non on Leap 15.5
Comment 5 Marcus Meissner 2024-06-13 22:04:49 UTC
openSUSE-RU-2024:0160-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1226110
CVE References: 
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP5 (src):    plasma5-workspace-5.27.9-bp155.2.9.1
Comment 6 Jim Taylor 2024-06-15 11:42:52 UTC
I confirm that the update fixes the problem. Marking the bug as fixed.
Comment 7 Jonzn 4suse 2024-06-15 14:35:18 UTC
I'm having similar issues on all my Tumbleweed installs running KDE6, but not on LEAP 15.6.

https://discuss.kde.org/t/plasma-not-opening-all-previous-open-apps-on-desktop/16894
Comment 8 Fabian Vogt 2024-06-15 21:21:25 UTC
(In reply to Jonzn 4suse from comment #7)
> I'm having similar issues on all my Tumbleweed installs running KDE6, but
> not on LEAP 15.6.
> 
> https://discuss.kde.org/t/plasma-not-opening-all-previous-open-apps-on-
> desktop/16894

The fix is in TW Snapshot 20240611+.
Comment 9 Jonzn 4suse 2024-06-16 15:58:57 UTC
YES SIR!!!  Thanks
Comment 10 Steffen Walter 2024-06-19 05:54:29 UTC
From my point of view this is not completely fixed. On Leap 15.5., still after logging out and back in, all Konsole sessions from the previous sessions are gone and have to be reopened.
Comment 11 Alessandro Soraruf 2024-06-19 18:38:38 UTC
Confirm that now session are saved, but as reported by Steffen Walter the session file name has changed, so after update users will loose all the old sessions. I've resolved copying my latest .config/session/konsole_xxxx session file into the new ones.
Comment 12 Steffen Walter 2024-06-19 20:22:50 UTC
(In reply to Alessandro Soraruf from comment #11)
> Confirm that now session are saved, but as reported by Steffen Walter the
> session file name has changed, so after update users will loose all the old
> sessions. I've resolved copying my latest .config/session/konsole_xxxx
> session file into the new ones.

Hmmm... maybe I didn't get your solution right, but right now my latest .config/session/konsole_xxxx session file is dating from Thursday, June 6th 2024 16:25:33 CEST, which is pretty much when things stopped working altogether.

Newer session files are from other applications like dolphin, kdf ... after I received the fix on June 16th. But nothing new for konsole, although I've used it also in several sessions since patching.
Comment 13 Alessandro Soraruf 2024-06-20 07:22:34 UTC
(In reply to Steffen Walter from comment #12)
> (In reply to Alessandro Soraruf from comment #11)
> > Confirm that now session are saved, but as reported by Steffen Walter the
> > session file name has changed, so after update users will loose all the old
> > sessions. I've resolved copying my latest .config/session/konsole_xxxx
> > session file into the new ones.
> 
> Hmmm... maybe I didn't get your solution right, but right now my latest
> .config/session/konsole_xxxx session file is dating from Thursday, June 6th
> 2024 16:25:33 CEST, which is pretty much when things stopped working
> altogether.
> 
> Newer session files are from other applications like dolphin, kdf ... after
> I received the fix on June 16th. But nothing new for konsole, although I've
> used it also in several sessions since patching.

If you look at your latest session file them have a new ID value after the application name, in this example the main "problem" was in konsole sessions:

...cut...
konsole_10149e1e2d7000162292777200000021750016_1697324951_114676
konsole_10149e1e2d7000165799946700000020290012_1697480091_880313
konsole_10149e1e2d7000162292777200000021750016_1697639404_621519
konsole_10149e1e2d7000165799946700000020290012_1697639404_839539
konsole_10149e1e2d7000162292777200000021750016_1697639613_577384
konsole_10149e1e2d7000162292777200000021750016_1697663203_958785
konsole_10149e1e2d7000165799946700000020290012_1697663204_191830
dolphin_dolphin_dolphin
kwin_saved at previous logout_
konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
konsole_10149e1e2d7000171784464700000032710009_1718573630_329854


If you see the last two have new ID different from the previous one.
On a therminal console (CTRL-F1) before logging in KDE I've done:

cp konsole_10149e1e2d7000162292777200000021750016_1697663203_958785 konsole_10149e1e2d7000171784449600000022590009_1718573630_340245

cp konsole_10149e1e2d7000171784449600000022590009_1718573630_340245 konsole_10149e1e2d7000171784449600000022590009_1718573630_340245

and this solved and now the session for that user are always saved fine.
Comment 14 Steffen Walter 2024-06-21 07:15:49 UTC
(In reply to Alessandro Soraruf from comment #13)
> (In reply to Steffen Walter from comment #12)
> > (In reply to Alessandro Soraruf from comment #11)
> > > Confirm that now session are saved, but as reported by Steffen Walter the
> > > session file name has changed, so after update users will loose all the old
> > > sessions. I've resolved copying my latest .config/session/konsole_xxxx
> > > session file into the new ones.
> > 
> > Hmmm... maybe I didn't get your solution right, but right now my latest
> > .config/session/konsole_xxxx session file is dating from Thursday, June 6th
> > 2024 16:25:33 CEST, which is pretty much when things stopped working
> > altogether.
> > 
> > Newer session files are from other applications like dolphin, kdf ... after
> > I received the fix on June 16th. But nothing new for konsole, although I've
> > used it also in several sessions since patching.
> 
> If you look at your latest session file them have a new ID value after the
> application name, in this example the main "problem" was in konsole sessions:
> 
> ...cut...
> konsole_10149e1e2d7000162292777200000021750016_1697324951_114676
> konsole_10149e1e2d7000165799946700000020290012_1697480091_880313
> konsole_10149e1e2d7000162292777200000021750016_1697639404_621519
> konsole_10149e1e2d7000165799946700000020290012_1697639404_839539
> konsole_10149e1e2d7000162292777200000021750016_1697639613_577384
> konsole_10149e1e2d7000162292777200000021750016_1697663203_958785
> konsole_10149e1e2d7000165799946700000020290012_1697663204_191830
> dolphin_dolphin_dolphin
> kwin_saved at previous logout_
> konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> konsole_10149e1e2d7000171784464700000032710009_1718573630_329854
> 
> 
> If you see the last two have new ID different from the previous one.
> On a therminal console (CTRL-F1) before logging in KDE I've done:
> 
> cp konsole_10149e1e2d7000162292777200000021750016_1697663203_958785
> konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> 
> cp konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> 
> and this solved and now the session for that user are always saved fine.

That didn't help in my case, so I guess my problem is slightly different. What I tried next is to backup ~/.config/session and then delete the session files from the original. All this of course outside of KDE.

First I deleted dolphin* from ~/.config/session , logged into KDE and opened a new dolphin window. After closing my KDE session there was a new dolphin session file with the current timestamp in ~/config/session as I would expect. 
In the next KDE session, the dolphin windows was reopened again ==> Works.

The same I did with konsole but no avail. There is no new konsole session file after closing KDE in ~/.config/session . If I restore one from the backup directory, I see that the timestamp changes, but the content of the file is not updated. As a result there is no konsole window reopened in the next KDE session.

Any ideas on that behavior?
Comment 15 Fabian Vogt 2024-06-21 18:17:34 UTC
(In reply to Steffen Walter from comment #14)
> (In reply to Alessandro Soraruf from comment #13)
> > (In reply to Steffen Walter from comment #12)
> > > (In reply to Alessandro Soraruf from comment #11)
> > > > Confirm that now session are saved, but as reported by Steffen Walter the
> > > > session file name has changed, so after update users will loose all the old
> > > > sessions. I've resolved copying my latest .config/session/konsole_xxxx
> > > > session file into the new ones.
> > > 
> > > Hmmm... maybe I didn't get your solution right, but right now my latest
> > > .config/session/konsole_xxxx session file is dating from Thursday, June 6th
> > > 2024 16:25:33 CEST, which is pretty much when things stopped working
> > > altogether.
> > > 
> > > Newer session files are from other applications like dolphin, kdf ... after
> > > I received the fix on June 16th. But nothing new for konsole, although I've
> > > used it also in several sessions since patching.
> > 
> > If you look at your latest session file them have a new ID value after the
> > application name, in this example the main "problem" was in konsole sessions:
> > 
> > ...cut...
> > konsole_10149e1e2d7000162292777200000021750016_1697324951_114676
> > konsole_10149e1e2d7000165799946700000020290012_1697480091_880313
> > konsole_10149e1e2d7000162292777200000021750016_1697639404_621519
> > konsole_10149e1e2d7000165799946700000020290012_1697639404_839539
> > konsole_10149e1e2d7000162292777200000021750016_1697639613_577384
> > konsole_10149e1e2d7000162292777200000021750016_1697663203_958785
> > konsole_10149e1e2d7000165799946700000020290012_1697663204_191830
> > dolphin_dolphin_dolphin
> > kwin_saved at previous logout_
> > konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > konsole_10149e1e2d7000171784464700000032710009_1718573630_329854
> > 
> > 
> > If you see the last two have new ID different from the previous one.
> > On a therminal console (CTRL-F1) before logging in KDE I've done:
> > 
> > cp konsole_10149e1e2d7000162292777200000021750016_1697663203_958785
> > konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > 
> > cp konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > 
> > and this solved and now the session for that user are always saved fine.
> 
> That didn't help in my case, so I guess my problem is slightly different.
> What I tried next is to backup ~/.config/session and then delete the session
> files from the original. All this of course outside of KDE.
> 
> First I deleted dolphin* from ~/.config/session , logged into KDE and opened
> a new dolphin window. After closing my KDE session there was a new dolphin
> session file with the current timestamp in ~/config/session as I would
> expect. 
> In the next KDE session, the dolphin windows was reopened again ==> Works.
> 
> The same I did with konsole but no avail. There is no new konsole session
> file after closing KDE in ~/.config/session . If I restore one from the
> backup directory, I see that the timestamp changes, but the content of the
> file is not updated. As a result there is no konsole window reopened in the
> next KDE session.
> 
> Any ideas on that behavior?

Check the output of konsole and the journal for warnings and error messages. You can check that "iceauth list" has valid output.
Comment 16 Steffen Walter 2024-06-23 11:34:24 UTC
(In reply to Fabian Vogt from comment #15)
> (In reply to Steffen Walter from comment #14)
> > (In reply to Alessandro Soraruf from comment #13)
> > > (In reply to Steffen Walter from comment #12)
> > > > (In reply to Alessandro Soraruf from comment #11)
> > > > > Confirm that now session are saved, but as reported by Steffen Walter the
> > > > > session file name has changed, so after update users will loose all the old
> > > > > sessions. I've resolved copying my latest .config/session/konsole_xxxx
> > > > > session file into the new ones.
> > > > 
> > > > Hmmm... maybe I didn't get your solution right, but right now my latest
> > > > .config/session/konsole_xxxx session file is dating from Thursday, June 6th
> > > > 2024 16:25:33 CEST, which is pretty much when things stopped working
> > > > altogether.
> > > > 
> > > > Newer session files are from other applications like dolphin, kdf ... after
> > > > I received the fix on June 16th. But nothing new for konsole, although I've
> > > > used it also in several sessions since patching.
> > > 
> > > If you look at your latest session file them have a new ID value after the
> > > application name, in this example the main "problem" was in konsole sessions:
> > > 
> > > ...cut...
> > > konsole_10149e1e2d7000162292777200000021750016_1697324951_114676
> > > konsole_10149e1e2d7000165799946700000020290012_1697480091_880313
> > > konsole_10149e1e2d7000162292777200000021750016_1697639404_621519
> > > konsole_10149e1e2d7000165799946700000020290012_1697639404_839539
> > > konsole_10149e1e2d7000162292777200000021750016_1697639613_577384
> > > konsole_10149e1e2d7000162292777200000021750016_1697663203_958785
> > > konsole_10149e1e2d7000165799946700000020290012_1697663204_191830
> > > dolphin_dolphin_dolphin
> > > kwin_saved at previous logout_
> > > konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > > konsole_10149e1e2d7000171784464700000032710009_1718573630_329854
> > > 
> > > 
> > > If you see the last two have new ID different from the previous one.
> > > On a therminal console (CTRL-F1) before logging in KDE I've done:
> > > 
> > > cp konsole_10149e1e2d7000162292777200000021750016_1697663203_958785
> > > konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > > 
> > > cp konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > > konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > > 
> > > and this solved and now the session for that user are always saved fine.
> > 
> > That didn't help in my case, so I guess my problem is slightly different.
> > What I tried next is to backup ~/.config/session and then delete the session
> > files from the original. All this of course outside of KDE.
> > 
> > First I deleted dolphin* from ~/.config/session , logged into KDE and opened
> > a new dolphin window. After closing my KDE session there was a new dolphin
> > session file with the current timestamp in ~/config/session as I would
> > expect. 
> > In the next KDE session, the dolphin windows was reopened again ==> Works.
> > 
> > The same I did with konsole but no avail. There is no new konsole session
> > file after closing KDE in ~/.config/session . If I restore one from the
> > backup directory, I see that the timestamp changes, but the content of the
> > file is not updated. As a result there is no konsole window reopened in the
> > next KDE session.
> > 
> > Any ideas on that behavior?
> 
> Check the output of konsole and the journal for warnings and error messages.
> You can check that "iceauth list" has valid output.

I discovered in the meantime that the issue is connected to the my main user on this machine while another user that is rarely used has a perfectly working session management again.
So I'd like to reset or initialize this for my user - but that seems to be more complex than I thought. What I've tried so far:

* Switching to "Start with empty session", reboot and switch back to "Restart last opened applications"

* delete ./config/session and ./config/ksmserverrc from a console outside KDE and re-login

Unfortunately both attempts did not help, so what am I missing?

When I play around with the two users, I see some entries in /var/log/messages like

2024-06-23T13:07:40.281391+02:00 mob-kischdle4 ksmserver[4436]: Qt: Session management error: networkIdsList argument is NULL

But these appear also with the user that is OK.

I think these might be pointing to the heart of the matter, they appear only at the "damaged" user:

2024-06-23T13:07:40.908625+02:00 mob-kischdle4 kdeconnectd[4662]: Qt: Session management error: Authentication Rejected, reason : MIT-MAGIC-COOKIE-1 authentication rejected
2024-06-23T13:07:44.904210+02:00 mob-kischdle4 konsole[4778]: Qt: Session management error: None of the authentication protocols specified are supported
2024-06-23T13:09:11.401531+02:00 mob-kischdle4 dolphin[5389]: Qt: Session management error: None of the authentication protocols specified are supported
2024-06-23T13:23:02.513410+02:00 mob-kischdle4 konsole[9230]: Qt: Session management error: None of the authentication protocols specified are supported

Ah, and "iceauth list" has similar output for both users like

iceauth:  creating new authority file /home/steff/.ICEauthority

I guess best way to go would be to re-initialize the session management for the user, but how?
Comment 17 Fabian Vogt 2024-06-23 12:27:10 UTC
(In reply to Steffen Walter from comment #16)
> I think these might be pointing to the heart of the matter, they appear only
> at the "damaged" user:
> 
> 2024-06-23T13:07:40.908625+02:00 mob-kischdle4 kdeconnectd[4662]: Qt:
> Session management error: Authentication Rejected, reason :
> MIT-MAGIC-COOKIE-1 authentication rejected
> 2024-06-23T13:07:44.904210+02:00 mob-kischdle4 konsole[4778]: Qt: Session
> management error: None of the authentication protocols specified are
> supported
> 2024-06-23T13:09:11.401531+02:00 mob-kischdle4 dolphin[5389]: Qt: Session
> management error: None of the authentication protocols specified are
> supported
> 2024-06-23T13:23:02.513410+02:00 mob-kischdle4 konsole[9230]: Qt: Session
> management error: None of the authentication protocols specified are
> supported
> 
> Ah, and "iceauth list" has similar output for both users like
> 
> iceauth:  creating new authority file /home/steff/.ICEauthority

That means $ICEAUTHORITY is not set for some reason, which is essential
for this to work. It's set by plasma-ksmserver.service.
Comment 18 Steffen Walter 2024-06-23 14:52:36 UTC
(In reply to Fabian Vogt from comment #15)
> (In reply to Steffen Walter from comment #14)
> > (In reply to Alessandro Soraruf from comment #13)
> > > (In reply to Steffen Walter from comment #12)
> > > > (In reply to Alessandro Soraruf from comment #11)
> > > > > Confirm that now session are saved, but as reported by Steffen Walter the
> > > > > session file name has changed, so after update users will loose all the old
> > > > > sessions. I've resolved copying my latest .config/session/konsole_xxxx
> > > > > session file into the new ones.
> > > > 
> > > > Hmmm... maybe I didn't get your solution right, but right now my latest
> > > > .config/session/konsole_xxxx session file is dating from Thursday, June 6th
> > > > 2024 16:25:33 CEST, which is pretty much when things stopped working
> > > > altogether.
> > > > 
> > > > Newer session files are from other applications like dolphin, kdf ... after
> > > > I received the fix on June 16th. But nothing new for konsole, although I've
> > > > used it also in several sessions since patching.
> > > 
> > > If you look at your latest session file them have a new ID value after the
> > > application name, in this example the main "problem" was in konsole sessions:
> > > 
> > > ...cut...
> > > konsole_10149e1e2d7000162292777200000021750016_1697324951_114676
> > > konsole_10149e1e2d7000165799946700000020290012_1697480091_880313
> > > konsole_10149e1e2d7000162292777200000021750016_1697639404_621519
> > > konsole_10149e1e2d7000165799946700000020290012_1697639404_839539
> > > konsole_10149e1e2d7000162292777200000021750016_1697639613_577384
> > > konsole_10149e1e2d7000162292777200000021750016_1697663203_958785
> > > konsole_10149e1e2d7000165799946700000020290012_1697663204_191830
> > > dolphin_dolphin_dolphin
> > > kwin_saved at previous logout_
> > > konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > > konsole_10149e1e2d7000171784464700000032710009_1718573630_329854
> > > 
> > > 
> > > If you see the last two have new ID different from the previous one.
> > > On a therminal console (CTRL-F1) before logging in KDE I've done:
> > > 
> > > cp konsole_10149e1e2d7000162292777200000021750016_1697663203_958785
> > > konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > > 
> > > cp konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > > konsole_10149e1e2d7000171784449600000022590009_1718573630_340245
> > > 
> > > and this solved and now the session for that user are always saved fine.
> > 
> > That didn't help in my case, so I guess my problem is slightly different.
> > What I tried next is to backup ~/.config/session and then delete the session
> > files from the original. All this of course outside of KDE.
> > 
> > First I deleted dolphin* from ~/.config/session , logged into KDE and opened
> > a new dolphin window. After closing my KDE session there was a new dolphin
> > session file with the current timestamp in ~/config/session as I would
> > expect. 
> > In the next KDE session, the dolphin windows was reopened again ==> Works.
> > 
> > The same I did with konsole but no avail. There is no new konsole session
> > file after closing KDE in ~/.config/session . If I restore one from the
> > backup directory, I see that the timestamp changes, but the content of the
> > file is not updated. As a result there is no konsole window reopened in the
> > next KDE session.
> > 
> > Any ideas on that behavior?
> 
> Check the output of konsole and the journal for warnings and error messages.
> You can check that "iceauth list" has valid output.

I discovered in the meantime that the issue is connected to the my main user on this machine while another user that is rarely used has a perfectly working session management again.
So I'd like to reset or initialize this for my user - but that seems to be more complex than I thought. What I've tried so far:

* Switching to "Start with empty session", reboot and switch back to "Restart last opened applications"

* delete ./config/session and ./config/ksmserverrc from a console outside KDE and re-login

Unfortunately both attempts did not help, so what am I missing?

When I play around with the two users, I see some entries in /var/log/messages like

2024-06-23T13:07:40.281391+02:00 mob-kischdle4 ksmserver[4436]: Qt: Session management error: networkIdsList argument is NULL

But these appear also with the user that is OK.

I think these might be pointing to the heart of the matter, they appear only at the "damaged" user:

2024-06-23T13:07:40.908625+02:00 mob-kischdle4 kdeconnectd[4662]: Qt: Session management error: Authentication Rejected, reason : MIT-MAGIC-COOKIE-1 authentication rejected
2024-06-23T13:07:44.904210+02:00 mob-kischdle4 konsole[4778]: Qt: Session management error: None of the authentication protocols specified are supported
2024-06-23T13:09:11.401531+02:00 mob-kischdle4 dolphin[5389]: Qt: Session management error: None of the authentication protocols specified are supported
2024-06-23T13:23:02.513410+02:00 mob-kischdle4 konsole[9230]: Qt: Session management error: None of the authentication protocols specified are supported

Ah, and "iceauth list" has similar output for both users like

iceauth:  creating new authority file /home/steff/.ICEauthority

I guess best way to go would be to re-initialize the session management for  
(In reply to Fabian Vogt from comment #17)
> (In reply to Steffen Walter from comment #16)
> > I think these might be pointing to the heart of the matter, they appear only
> > at the "damaged" user:
> > 
> > 2024-06-23T13:07:40.908625+02:00 mob-kischdle4 kdeconnectd[4662]: Qt:
> > Session management error: Authentication Rejected, reason :
> > MIT-MAGIC-COOKIE-1 authentication rejected
> > 2024-06-23T13:07:44.904210+02:00 mob-kischdle4 konsole[4778]: Qt: Session
> > management error: None of the authentication protocols specified are
> > supported
> > 2024-06-23T13:09:11.401531+02:00 mob-kischdle4 dolphin[5389]: Qt: Session
> > management error: None of the authentication protocols specified are
> > supported
> > 2024-06-23T13:23:02.513410+02:00 mob-kischdle4 konsole[9230]: Qt: Session
> > management error: None of the authentication protocols specified are
> > supported
> > 
> > Ah, and "iceauth list" has similar output for both users like
> > 
> > iceauth:  creating new authority file /home/steff/.ICEauthority
> 
> That means $ICEAUTHORITY is not set for some reason, which is essential
> for this to work. It's set by plasma-ksmserver.service.

Yes, that is true indeed, "echo $ICEAUTHORITY" brings up an empty line. How would I set that for this user? I could not spot that "plasma-ksmerver.service" in 

(In reply to Fabian Vogt from comment #17)
> (In reply to Steffen Walter from comment #16)
> > I think these might be pointing to the heart of the matter, they appear only
> > at the "damaged" user:
> > 
> > 2024-06-23T13:07:40.908625+02:00 mob-kischdle4 kdeconnectd[4662]: Qt:
> > Session management error: Authentication Rejected, reason :
> > MIT-MAGIC-COOKIE-1 authentication rejected
> > 2024-06-23T13:07:44.904210+02:00 mob-kischdle4 konsole[4778]: Qt: Session
> > management error: None of the authentication protocols specified are
> > supported
> > 2024-06-23T13:09:11.401531+02:00 mob-kischdle4 dolphin[5389]: Qt: Session
> > management error: None of the authentication protocols specified are
> > supported
> > 2024-06-23T13:23:02.513410+02:00 mob-kischdle4 konsole[9230]: Qt: Session
> > management error: None of the authentication protocols specified are
> > supported
> > 
> > Ah, and "iceauth list" has similar output for both users like
> > 
> > iceauth:  creating new authority file /home/steff/.ICEauthority
> 
> That means $ICEAUTHORITY is not set for some reason, which is essential
> for this to work. It's set by plasma-ksmserver.service.

I see plasma-ksmserver.service running in sytemctl status. What do I have to do to get the environment variable set?
Comment 19 Fabian Vogt 2024-06-23 17:47:39 UTC
Try systemctl --user status plasma-ksmserver
Comment 20 Steffen Walter 2024-06-23 20:10:11 UTC
(In reply to Fabian Vogt from comment #19)
> Try systemctl --user status plasma-ksmserver

That's what I get:

● plasma-ksmserver.service - KDE Session Management Server
     Loaded: loaded (/usr/lib/systemd/user/plasma-ksmserver.service; disabled; vendor preset: disabled)
     Active: active (running) since Sun 2024-06-23 16:32:41 CEST; 5h 35min ago
   Main PID: 23359 (ksmserver)
     CGroup: /user.slice/user-1001.slice/user@1001.service/session.slice/plasma-ksmserver.service
             └─ 23359 /usr/bin/ksmserver
Comment 21 Steffen Walter 2024-06-23 20:10:44 UTC
Which is the same at both users
Comment 22 Steffen Walter 2024-06-24 09:45:37 UTC
I saw that the user that has the defunct session management shows:

---
steff@mob-kischdle4:/> echo $ICEAUTHORITY

steff@mob-kischdle4:/> 
---

While the second user that has working session managment shows:

---
silke@mob-kischdle4:~> echo $ICEAUTHORITY 
/run/user/1000/iceauth_IJujQi
silke@mob-kischdle4:~> 
---

With
steff = UserID 1000
silke = UserID 1001

However, there is also a binary file

/run/user/1001/iceauth_PxzKNi

but somehow that not gets connected to the session of user steff.

Can anyone point me to the missing bit here?
Comment 23 Steffen Walter 2024-06-24 09:46:54 UTC
(In reply to Steffen Walter from comment #22)
> I saw that the user that has the defunct session management shows:
> 
> ---
> steff@mob-kischdle4:/> echo $ICEAUTHORITY
> 
> steff@mob-kischdle4:/> 
> ---
> 
> While the second user that has working session managment shows:
> 
> ---
> silke@mob-kischdle4:~> echo $ICEAUTHORITY 
> /run/user/1000/iceauth_IJujQi
> silke@mob-kischdle4:~> 
> ---
> 
> With
> steff = UserID 1000
> silke = UserID 1001
> 
> However, there is also a binary file
> 
> /run/user/1001/iceauth_PxzKNi
> 
> but somehow that not gets connected to the session of user steff.
> 
> Can anyone point me to the missing bit here?

Sorry, of course other way round:

steff = UserID 1001
silke = UserID 1000
Comment 24 Aleksey Kontsevich 2024-07-19 18:35:34 UTC
Tried to switch to Plasma (Wayland) in SDDM after nvidia driver update - this bug 1 happened again, session was not restored - and completely broken. After that switch to Wayland KDE stopped to save session completely! How to fix?!

https://forums.opensuse.org/t/re-kde-plasma6-does-not-restore-previous-session-on-start-any-more/176937