https://bugs.kde.org/show_bug.cgi?id=525881
Bug ID: 525881
Summary: Dolphin no longer restores all of my open Dolphin
windows after a Plasma logout/reboot.
Classification: Applications
Product: dolphin
Version First 26.08.1
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
I normally keep many separate Dolphin windows open. They are independent
Dolphin processes, not merely multiple tabs in one process.
Dolphin is configured with:
Settings → Configure Dolphin → Startup → “Show on startup: Folders, tabs, and
window state from last time”
Plasma is configured to restore the previous session.
This used to restore all of my Dolphin windows. For approximately the last two
to three years, only one Dolphin window/session survives.
The problem is particularly disruptive because after logout/reboot the
directory/tab state of the other Dolphin windows is lost.
Steps to reproduce
Configure Plasma session startup to restore the previous logout session.
In Dolphin, configure startup to restore folders, tabs, and window state from
the last session.
Open several separate Dolphin windows. In my case these run as separate dolphin
processes.
Navigate the windows to different directories so they are easily
distinguishable.
Log out normally and log back in, or reboot.
Observe the restored Dolphin state.
Actual result
Only one Dolphin window/session is restored.
The other independently open Dolphin windows and their locations are lost.
Expected result
All Dolphin windows that were open at session shutdown should be restored,
including the folders/tabs associated with each window.
This was the behavior I had with older KDE/Dolphin versions.
Current software
Fedora Linux 44
Dolphin:
26.08.1
Plasma:
6.7.5
KDE Frameworks packages include:
kf6-kconfig-6.30.0-1.fc44.x86_64
kf6-kxmlgui-6.30.0-1.fc44.x86_64
Plasma workspace:
plasma-workspace-6.7.5-1.fc44.x86_64
Windowing system:
Wayland
Plasma session configuration
~/.config/ksmserverrc contains:
[General]
excludeApps=skype
loginMode=restorePreviousLogout
The saved Plasma session itself therefore appears to be configured for
previous-session restoration.
Evidence from the affected session
Before logout I had many independent Dolphin processes. For example:
/usr/bin/dolphin
was running as multiple separate processes, all launched within the Plasma
session.
At logout, KWin's saved-window state recorded approximately 15 Dolphin windows.
Entries in:
~/.config/session/kwin_saved at previous logout_
included multiple instances of:
resourceClassN=dolphin
resourceNameN=dolphin
windowRoleN=Dolphin#1
Thus KWin knew that many separate Dolphin windows existed at logout.
The systemd user journal also shows numerous long-running Dolphin instances
terminating together at logout. Some had been running for 8–17 hours.
Nevertheless, Dolphin's current session directory contains only one recent
Dolphin session-state file:
~/.config/session/dolphin_dolphin_dolphin
Its contents include:
[Number]
NumberOfWindows=1
and state for a single DolphinMainWindow.
No separate recent per-process Dolphin session files exist.
Historical comparison
My ~/.config/session/ directory still contains old Dolphin session files from
2023.
At a single logout in December 2023, KDE/Dolphin created numerous separate
files with names similar to:
dolphin_<unique session/client id>_<timestamp>
Many such Dolphin files were written within seconds of one another at logout.
This is consistent with the behavior I remember: each independently running
Dolphin instance participated in KDE session saving and all of the windows
could subsequently be restored.
That pattern stops in my session directory after December 2023. Current Dolphin
instead uses the single file:
dolphin_dolphin_dolphin
Additional live observation
While investigating the problem, I observed that:
~/.config/session/dolphin_dolphin_dolphin
is actively updated by current Dolphin. Its modification time changed
immediately after Dolphin state changed.
The file can contain Tab Data entries with saved URLs, but still reports:
NumberOfWindows=1
and does not contain the state of all independently running Dolphin windows.
Additional observation
The journal repeatedly prints the following for Dolphin processes:
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not
UTF-8.
I do not know whether this is related; I mention it only for completeness.
Questions for developers
Is restoring multiple independently running Dolphin windows still intended to
work under Plasma 6/Wayland?
If so, is the current use of ~/.config/session/dolphin_dolphin_dolphin instead
of the former per-session/per-client files related to the regression?
Is there currently another supported mechanism by which Plasma should restore
each Dolphin process/window?
If the current behavior is intentional, could Dolphin itself save and restore
all independent windows rather than silently losing all but one?
--
You are receiving this mail because:
You are watching all bug changes.