Can Save Session remember the virtual desktop of an application

Hello everyone!

I am using Plasma 6 and am rather happy about the Save Session feature.
I have a small issue, though: The windows that get re-opened are mostly (not all) opened on my first virtual desktop.
It would be nice, if Save Session could remember the virtual desktop a particular Application was open when I pressed Save Session and move it to the correct Virtual Desktop.

The applications in question are:

  • VSCode (Code - OSS)
  • Thunderbird
  • Element
  • Kitty Terminal

Interestingly, it seems like Save Session remembers the Virtual Desktop for Thunderbird, but not for the other Applications.

Is there a trick / config to make Save Session remember the virtual desktop for the other Applications as well?

If relevant:

$ plasmashell --version                                                                        
plasmashell 6.3.3

and I am using X11.

This is mostly an application problem.

When saving, the X11 session manager generates a sort of key and ask applications to save their state for the given key.

When restoring, the session manager asks applications to restore their state for a given key.

If the application has not saved the virtual desktop correctly or does not load or apply it correctly on restore, then it ends up in a default location.

Some apps aren’t even aware of the existence of virtual desktops!

On Wayland, the session management will eventually be done differently (final implementations have not landed yet).

Window positions and sizes will be saved by the compositor (which is also the window manager) and applications only restore their internal state.

2 Likes