Bug 448707 - Dolphin always restores all tabs, even on additional instances
Summary: Dolphin always restores all tabs, even on additional instances
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 21.12.0
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
: 442753 469271 504588 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-18 12:34 UTC by Kevin Kandlbinder
Modified: 2026-08-12 17:53 UTC (History)
8 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Kandlbinder 2022-01-18 12:34:59 UTC
SUMMARY
Dolphin always restores all tabs from last close. Even if a secondary instance and so on is opened.


STEPS TO REPRODUCE
1. Open Dolphin
2. Create multiple Tabs
3. Close Dolphin
4. Open Dolphin (Tabs are restored)
5. Open another Dolphin (New Instance, Middle Click on Icon, or Meta+E)

OBSERVED RESULT
On the second instance all tabs from last close are there again. Especially when many tabs are open, this is annoying.

EXPECTED RESULT
A fresh start of Dolphin, with no tabs opened. (Just like "New Window" / Ctrl+N)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Felix Ernst 2022-10-12 11:12:49 UTC
I agree with all of the above. There should be no restoration happening when a Dolphin instance is already running.
Comment 2 Andrey 2022-10-12 13:17:05 UTC
I'm not sure why this is a problem.
What prevents from just using "New Window" / Ctrl+N for this?
Comment 3 Justin Zobel 2025-02-08 00:26:15 UTC
*** Bug 442753 has been marked as a duplicate of this bug. ***
Comment 4 John Kizer 2025-05-26 05:22:48 UTC
*** Bug 504588 has been marked as a duplicate of this bug. ***
Comment 5 Bug Janitor Service 2026-04-25 09:02:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/1257
Comment 6 Méven 2026-05-04 09:30:46 UTC
Git commit 173794ce15620aa0c673464f532cfd67f55ab278 by Méven Car, on behalf of Sergey Katunin.
Committed on 04/05/2026 at 08:42.
Pushed by meven into branch 'master'.

Restore session if this is the first instance

1. Restore session if this is the first instance
even with "new-window" option.

Otherwise, if Dolphin has not been opened before,
and a program (such as browsers or Kate) that
launch Dolphin with "new-window" option will
start Dolphin, it opens only with one tab and
closes the user's previous session.

With this patch, the behavior is similar to
how the first instance of browsers opens
with setting for tab recovery enabled.

Also restore sessions if this is restoring
multiple instances with session restoration
after reboot enabled.

2. Dolphin should not restore all tabs for
additional instances.

This is especially noticeable if the
"Keep a single Dolphin window, opening new folders
in tabs" checkbox is turned off, and when the
Dolphin window is already open (with several tabs),
folders from the desktop (plasmashell) are opened
by double-clicking. Desktop opens a new Dolphin
window with the tabs restored and an open folder
at the end.
Related: bug 464693, bug 469271

M  +6    -4    src/main.cpp

https://invent.kde.org/system/dolphin/-/commit/173794ce15620aa0c673464f532cfd67f55ab278
Comment 7 aristsakas 2026-08-12 17:53:12 UTC
*** Bug 469271 has been marked as a duplicate of this bug. ***