When Dolphin 23.04.1 is restored by resuming an activity or rebooting (with session restoration enabled), it always shows the default directory (user's home), instead of showing the folders that were open when the activity was saved or the computer was shut down.
STEPS TO REPRODUCE
1. In a fresh activity, open Dolphin and navigate to any directory other than the default
2. Suspend the activity
3. Resume the activity
1. In System Settings > Startup and Shutdown > Desktop Session, pick the option to restore applications from last session
2. Open a Dolphin window and navigate to any directory other than the default
3. Reboot and log in
A Dolphin window opens in the correct virtual desktop/activity, but it just shows the default directory (user's home).
Session restore should restore the folders that were open in the dolphin windows.
Operating System: Arch Linux
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.1-arch2-1 (64-bit)
Graphics Platform: X11
Downgrading to 23.04.0 fixes the issue
Git bisect output:
d19800c69198b904ae47cb1e53dfe28f74618eb2 is the first bad commit
Author: Méven Car <email@example.com>
Date: Thu Apr 20 08:50:40 2023 +0000
Restrict attaching instances to those on the same activity or same virtual desktop
(cherry picked from commit b99f6f50eef395a3ceb88fb3d4b7357cbbc13c85)
src/dolphinmainwindow.cpp | 25 +++++++++++++++++++++++++
src/dolphinmainwindow.h | 3 +++
src/global.cpp | 44 +++++++++++++++++++++++++++++++++-----------
3 files changed, 61 insertions(+), 11 deletions(-)
*** This bug has been marked as a duplicate of bug 469656 ***
*** Bug 469868 has been marked as a duplicate of this bug. ***
(In reply to Méven Car from comment #2)
> MR https://invent.kde.org/system/dolphin/-/merge_requests/550
That does not seem to fix the issue on my machine (tested situation A).
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/550
I am currently experiencing the same bug.
If it can help, I see the default home folder when I open dolphin manually (clicking on the app) and when my computer opens dolphin on start, BUT I see the saved state when another app opens dolphin. Not sure why the behavior is different depending on the case
(In reply to mlchatnoir666 from comment #6)
> I am currently experiencing the same bug.
> If it can help, I see the default home folder when I open dolphin manually
> (clicking on the app) and when my computer opens dolphin on start, BUT I see
> the saved state when another app opens dolphin. Not sure why the behavior is
> different depending on the case
as seen in https://bugs.kde.org/show_bug.cgi?id=469656 , the bug doesn't happen if you open dolphin with the shortcut (default Meta+E in Plasma). I'm just reposting for others since it's a valid workaround