Bug 494929

Summary: Adding New Folder Opener Changes Default File Manager
Product: [Applications] dolphin Reporter: Marri <boslmari7>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: ad.liu.jin, kfm-devel
Priority: NOR    
Version: 24.08.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video showing observed behaviour
test

Description Marri 2024-10-17 11:55:20 UTC
Created attachment 174937 [details]
Video showing observed behaviour

STEPS TO REPRODUCE
1. Right click in Folder > Open Folder with > Other Application > Always open Folder files with the chosen app
2. Have any folder opened by something else than Dolphin, like a plugged in usb stick (with Mount and open)
Also see attached video

OBSERVED RESULT
It will open with the application that was added to the context menu list.

EXPECTED RESULT
It should continue to open the application with dolphin.
Reasoning: If I want to change the file manager, I go to settings and change the file manager. I do not want my default file manager to change every time I want to be able to open folders with another application like an IDE or generally software that works within a directory (which I, for example, have 10 of and every time I installed one of them I had to change back my file manager).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.10.12-200.fc40.x86_64
KDE Plasma Version: KDE Plasma 6.2.0
Comment 1 Marri 2024-10-17 11:56:00 UTC
Created attachment 174938 [details]
test
Comment 2 Marri 2024-10-17 11:57:18 UTC
I'm sorry, the upload somehow doesn't play for me so I uploaded the video to a third-party website:
https://streamable.com/c7fep9
Comment 3 Jin Liu 2024-10-18 03:48:27 UTC
The "settings - default applications - file manager" is the same setting as "Always open Folder files with the chosen app", i.e. the preferred option for the MIME type inode/directory.

To add an app to "Open with..." without changing the default file manager, you can either 1) Do what you described, then change the default file manager setting back to Dolphin; or 2) Add the app in "settings - default applications - file associations - inode - directory".
Comment 4 Marri 2024-10-18 07:26:12 UTC
I find it fairly odd that this is intended behaviour.

I mean there's a significant difference between an app I want to open a folder with and the app I want to generally manage my files, as evidenced by many posts on the internet, some of which:

https://superuser.com/questions/1015960/transmission-is-using-a-weirdo-file-browser-instead-of-my-default-kde-file-brows/1109778#1109778
https://forum.kde.org/viewtopic.php%3Ff=289&t=153415.html
https://bbs.archlinux.org/viewtopic.php?id=87574
https://github.com/flatpak/flatpak/issues/5235
https://www.reddit.com/r/hyprland/comments/18ds4gd/dolphinfile_manager_does_not_open_when_show_in/

Why are we doing it this way and would it not be better to add applications only as folder openers and not change the file manager? It seems to me that many more people are installing an IDE or similar than changing their file manager and also many don't expect their file manager to change when a new app to open folders with is added.
Comment 5 Jin Liu 2024-10-18 08:06:00 UTC
(In reply to Marri from comment #4)
> Why are we doing it this way and would it not be better to add applications
> only as folder openers and not change the file manager?

As I said, you can do that in "settings - default applications - file associations - inode - directory". As long as your new app is not the first in the list, it won't become "the file manager".