Bug 499842

Summary: Xterm does not remember their virtual desktops on session restore
Product: [Plasma] plasmashell Reporter: Alexad <al.neodim>
Component: Session ManagementAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: john.kizer, m.kurz, natalie_clarius, nate
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: 1.0   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexad 2025-02-11 21:36:17 UTC
I've dual monitor setup with multiple virtual desktops. Before upgrading to Kubuntu 24.10 I had few xterm opened on different virtual desktops. They restored as usually in their place. Now, however, they are all crowded on first virtual desktop on screen 1.

It seems like ksmserver ignores `desktop*` values from `$HOME/.config/session/kwin_saved at previous logout_`.

Very easy steps to REPRODUCE:
1. Create second virtual desktop and switch to it
2. Run in console: /usr/bin/xterm -wf -fn 10 -fs 10 -T TestingKwin vim
3. Reboot/log-out and then log in

The xterm with vim will not restore into its original desktop.

It's another serious regression I face since  upgrade, please fix!
Comment 1 Bug Janitor Service 2025-02-11 22:33:38 UTC
Thank you for the bug report!

However Plasma 6.1.5 is no longer eligible for support or maintenance from KDE; supported versions are 5.27. (LTS), and 6.2 (non-LTS) or newer. Please upgrade to a supported version as soon as your distribution makes it available to you. Plasma is a fast-moving project, and bugs in one version are often fixed in the next one.

If you need support for Plasma 6.1.5, please contact your distribution, who bears the responsibility of providing support for older releases that are no longer supported by KDE.

If you can reproduce the issue after upgrading to a supported version, feel free to re-open this bug report.
Comment 2 Alexad 2025-05-16 22:56:40 UTC
I've updated to Kubuntu 25.04  with Plasma 6.3.4 and the issue still persist. This should be reopened!

Btw, there is related issue that haven't been "resolved downstream": Bug 336990
Comment 3 John Kizer 2025-05-21 18:02:35 UTC
Hi - just checking, are you using a Wayland or X11 session?
Comment 4 Alexad 2025-05-22 15:32:08 UTC
(In reply to John Kizer from comment #3)
> Hi - just checking, are you using a Wayland or X11 session?

I'm using X11 (during login it says x11). I don't use wayland because of poor support for sessions.
Comment 5 John Kizer 2025-05-23 03:17:16 UTC
Thanks for confirming - that related issue covers the general situation of applications not restoring to the previous virtual desktop in X11, so I'm merging these together so the reports can be tracked together. Thanks!

*** This bug has been marked as a duplicate of bug 336990 ***
Comment 6 Nate Graham 2025-10-22 20:08:03 UTC
This specific case is covered by 15329. Once support is added to KWin, the app will need to set the necessary metadata for the session restore bits to work.

*** This bug has been marked as a duplicate of bug 15329 ***