Bug 455324

Summary: States of individual Dolphin windows are not remembered/restored
Product: [Applications] dolphin Reporter: Patrick O'Callaghan <pocallaghan>
Component: panels: terminalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: 4wy78uwh, kfm-devel, miranda, msdobrescu, postix
Priority: NOR    
Version: 22.04.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick O'Callaghan 2022-06-15 12:12:30 UTC
SUMMARY
When restoring Dolphin windows, the Terminal open/closed state of one window is copied for all of them, rather than being treated individually.

STEPS TO REPRODUCE
1. Open several Dolphin Windows, and open Terminal in some but not all
2. Close session (e.g. log out)
3. Log in again.

OBSERVED RESULT
All the Dolphin windows have the same Terminal state, either open or closed. Which one it is appears to be random (or may depend on which one was active when the session was closed, but I haven't checked this).

EXPECTED RESULT
Each window should have its correct Terminal state restored to what it was.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 36
(available in About System)
KDE Plasma Version: 5.24 (and earlier versions)
KDE Frameworks Version: 22.04 (and earlier versions)
Qt Version: 6.3 (and earlier versions)

ADDITIONAL INFORMATION
Running under X11 as Wayland session restore is still broken.
Comment 1 Patrick O'Callaghan 2022-07-13 10:18:50 UTC
The restored state corresponds to the topmost (selected) window at the time Dolphin exits. This affects not only the terminal state but also the window dimensions.
Comment 2 Patrick O'Callaghan 2024-08-25 10:52:58 UTC
This is an update to a previously filed bug because the situation under Wayland is now worse than before.

When saving/restoring Dolphin windows under Wayland's Fake Session Restore, each window opens in the same state, rather than in the specific state it should have been saved in, i.e. if several windows are open at save time, some with split panes in different directories, some with a terminal etc., then on restoring they will all have copies of just one of them, presumably the last one to be saved.