Bug 418537 - If folder is already open, and "open new folders in tabs" is disabled, "Open containing folder" feature should focus current instance of Dolphin instead of opening a new one
Summary: If folder is already open, and "open new folders in tabs" is disabled, "Open...
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 19.12.3
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
Keywords: triaged
Depends on:
Reported: 2020-03-06 11:45 UTC by Patrick Silva
Modified: 2023-05-10 18:08 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-03-06 11:45:20 UTC
1. open Dolphin
2. take a screenshot by pressing printscreen key and save it to your Home (Plasma shows a notification)
3. right click on notitication, choose "Open containing folder"

another instance of Dolphin is started

instance of Dolphin already running and showing Home should be focused.

Operating System: Arch Linux
KDE Plasma Version: 5.18.2
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Comment 1 Nate Graham 2020-03-06 18:04:07 UTC

*** This bug has been marked as a duplicate of bug 417230 ***
Comment 2 Patrick Silva 2020-03-06 18:51:25 UTC
bug 417230 is a different issue.
The behavior described here is still reproducible with Dolphin 19.12.3.
Comment 3 Nate Graham 2020-03-06 19:15:32 UTC
Cannot reproduce the issue described in this bug. Works for me.
Comment 4 Patrick Silva 2020-03-06 19:17:29 UTC
Weird. I can reproduce on Neon unstable too.
Comment 5 Patrick Silva 2020-03-08 17:16:07 UTC
I have just noticed that this behavior is only reproducible when
"Open new folders in tabs" is unchecked in "Startup" section of Dolphin settings.
Comment 6 Nate Graham 2020-03-08 17:20:45 UTC
Ah yes, that makes sense. Can reproduce now.
Comment 7 Elvis Angelaccio 2020-03-14 18:39:14 UTC
I'm confused. If you uncheck "Open new folders in tabs" then you are disabling the feature, meaning that another instance of dolphin will be started instead of focusing the current instance.

What's the bug then?
Comment 8 Patrick Silva 2020-03-14 19:18:29 UTC
I think that open another instance of Dolphin to show an already open folder is unnecessary.

Nautilus on Gnome only opens another instance if currently it is showing a folder different than the one opened by "Open containing folder" feature of Firefox, for example.
If the containing folder is already open, current instance of nautilus tries to steal focus and Gnome Shell shows "Folder is ready" notification. If I click on such notification, current instance of nautilus is focused. Nautilus does not open another instance if the containing folder is already open and I consider this to be the expected behavior.

Maybe we can set this report to "wishlist".
Comment 9 Nate Graham 2020-03-14 20:47:30 UTC
Yeah, the bug is that opening a new instance is unnecessary when the current instance is already showing the folder in which the file would be highlighted. In this case, it should focus that instance and scroll to the file, rather than opening a new instance.
Comment 10 a.saoutkin 2020-03-30 17:40:50 UTC
The reaosn why people think this is a bug is that this behaviour in "Open containing folder" was introduced at the same time as it's introduction.

It was due to this comment that I used an already running instance: "https://phabricator.kde.org/D16648#452719".

I guess it should be quite easy to add this feature for both versions.
Comment 11 Patrick Silva 2023-05-10 18:08:39 UTC
Dolphin 23.04 is working as requested here. \o/

Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Graphics Platform: Wayland