Bug 464693

Summary: Dolphin does not open with the previous tabs when launched by an external app (via 'Show in the folder' or 'Open containing folder')
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: b2ainiak, bizyaev, kdedev, kfm-devel, lastminutejanedoe, nullzert.null, ped, seastland
Priority: NOR    
Version First Reported In: 24.02.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video recording of the issue

Description Patrick Silva 2023-01-23 14:12:51 UTC
STEPS TO REPRODUCE
1. open Dolphin 
2. make sure 'Show on startup: Folders, tabs, add window state from last time' option is selected in 'Startup' section of Dolphin settings
3. open some tabs
4. close Dolphin
5. take a screenshot with Spectacle and save it - a notification appears
6. click on the hamburger button of the notification and choose 'Open containing folder'

OBSERVED RESULT
Dolphin opens without the tabs open in the step 3

EXPECTED RESULT
Dolphin opens with the tabs open in the step 3

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Graphics Platform: Wayland
Comment 1 b2 2023-04-06 18:46:45 UTC
Created attachment 157907 [details]
Video recording of the issue

Same for me. Attached a recording of the issue.

SOFTWARE/OS VERSIONS
Linux: Fedora 36
KDE Plasma: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
I have removed any other file managers I had in case it interfered.
Comment 2 Patrick Silva 2023-04-26 11:03:14 UTC
*** Bug 468966 has been marked as a duplicate of this bug. ***
Comment 3 Steven Eastland 2023-05-18 16:37:32 UTC
This is also happening to me.  My observations:

I have "Show on startup: Folders, tabs, add window state from last time" selected. After closing Dolphin:

* Opening it again from a pinned entry in the Icons-Only Task Manager does not remember the last tabs.
* Restoring it after login from a saved session does not remember the last tabs.
* Opening it again using the Meta+E shortcut DOES remember the last tabs.

SOFTWARE/OS VERSIONS
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.2-arch1-1 (64-bit)
Comment 4 Patrick Silva 2023-05-18 16:44:07 UTC
you are facing bug 469656
Comment 5 TraceyC 2025-08-06 00:54:54 UTC
fixes and improvements since this was reported, and this issue may have been fixed.

Can you please re-test on your system with Dolphin 25.04.3 or later and let us know if you can still reproduce the problem? If you can, please set this report back to REPORTED. Thanks!
Comment 6 Patrick Silva 2025-08-06 11:14:56 UTC
Can reproduce with provided steps.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.1
Graphics Platform: Wayland
Comment 7 Real Name Here 2025-08-11 05:14:51 UTC
For me, dolphin doesn't remember additional tabs when launched by an external QT program then closed. If I open a folder in qbittorrent, close dolphin, then launch dolphin independently, the qBittorrent tab is forgotten.

With GTK apps such as Firefox, using the "Show In Folder" from the Downloads menu launches Dolphin with a singular tab of that folder without the previously saved tabs. If I close dolphin then reopen the previous tabs are restored and the Firefox tab is forgotten.

KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Graphics Platform: Wayland
dolphin 25.04.3
Comment 8 TraceyC 2025-08-14 17:15:30 UTC
(In reply to Real Name Here from comment #7)
> With GTK apps such as Firefox, using the "Show In Folder" from the Downloads
> menu launches Dolphin with a singular tab of that folder without the
> previously saved tabs. If I close dolphin then reopen the previous tabs are
> restored and the Firefox tab is forgotten.

I can reproduce this on git-master.
Comment 9 Real Name Here 2025-08-15 04:08:01 UTC
(In reply to TraceyC from comment #8)
> (In reply to Real Name Here from comment #7)
> > With GTK apps such as Firefox, using the "Show In Folder" from the Downloads
> > menu launches Dolphin with a singular tab of that folder without the
> > previously saved tabs. If I close dolphin then reopen the previous tabs are
> > restored and the Firefox tab is forgotten.
> 
> I can reproduce this on git-master.

Another QT app example, Kate:

1. Launch Dolphin with a few tabs.
2. Close Dolphin
3. Launch Kate > File> Open File > Right Click Folder > Open Folder With Dolphin
4. Close Dolphin
5. Open Dolphin and the Kate tab is forgotten, but tabs from step 1 are remembered.

Thank you for tracking and working on resolving this bug!