Bug 455324 - States of individual Dolphin windows are not remembered/restored
Summary: States of individual Dolphin windows are not remembered/restored
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: terminal (show other bugs)
Version: 22.04.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-15 12:12 UTC by Patrick O'Callaghan
Modified: 2024-09-06 15:59 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.