<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>448707</bug_id>
          
          <creation_ts>2022-01-18 12:34:59 +0000</creation_ts>
          <short_desc>Dolphin always restores all tabs, even on additional instances</short_desc>
          <delta_ts>2026-08-12 17:53:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>dolphin</product>
          <component>general</component>
          <version>21.12.0</version>
          <rep_platform>Manjaro</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=442753</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Kandlbinder">kevin</reporter>
          <assigned_to name="Dolphin Bug Assignee">dolphin-bugs-null</assigned_to>
          <cc>andy</cc>
    
    <cc>bugseforuns</cc>
    
    <cc>butirsky</cc>
    
    <cc>dolphin-bugs-null</cc>
    
    <cc>felixernst</cc>
    
    <cc>niko+kde_org</cc>
    
    <cc>php4fan</cc>
    
    <cc>postix</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2095005</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Kandlbinder">kevin</who>
    <bug_when>2022-01-18 12:34:59 +0000</bug_when>
    <thetext>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 &quot;New Window&quot; / 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160365</commentid>
    <comment_count>1</comment_count>
    <who name="Felix Ernst">felixernst</who>
    <bug_when>2022-10-12 11:12:49 +0000</bug_when>
    <thetext>I agree with all of the above. There should be no restoration happening when a Dolphin instance is already running.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160396</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2022-10-12 13:17:05 +0000</bug_when>
    <thetext>I&apos;m not sure why this is a problem.
What prevents from just using &quot;New Window&quot; / Ctrl+N for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2395857</commentid>
    <comment_count>3</comment_count>
    <who name="Justin Zobel">justin</who>
    <bug_when>2025-02-08 00:26:15 +0000</bug_when>
    <thetext>*** Bug 442753 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2427469</commentid>
    <comment_count>4</comment_count>
    <who name="John Kizer">john</who>
    <bug_when>2025-05-26 05:22:48 +0000</bug_when>
    <thetext>*** Bug 504588 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2512067</commentid>
    <comment_count>5</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-04-25 09:02:28 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/1257</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2513562</commentid>
    <comment_count>6</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2026-05-04 09:30:46 +0000</bug_when>
    <thetext>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 &apos;master&apos;.

Restore session if this is the first instance

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

Otherwise, if Dolphin has not been opened before,
and a program (such as browsers or Kate) that
launch Dolphin with &quot;new-window&quot; option will
start Dolphin, it opens only with one tab and
closes the user&apos;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
&quot;Keep a single Dolphin window, opening new folders
in tabs&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538366</commentid>
    <comment_count>7</comment_count>
    <who name="aristsakas">aristsakas</who>
    <bug_when>2026-08-12 17:53:12 +0000</bug_when>
    <thetext>*** Bug 469271 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>