Bug 377116

Summary: Unexpected behavior when calling dolphin with a file as an argument
Product: [Applications] dolphin Reporter: Aleix Pol <aleixpol>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: ASSIGNED ---    
Severity: normal CC: bugseforuns, elvis.angelaccio, justin.zobel, mail, nekoxmachina
Priority: NOR    
Version First Reported In: 16.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Aleix Pol 2017-03-02 16:20:59 UTC
Example: "dolphin /etc/fstab"

What we get:
dolphin in a broken state and kate triggered to open the file.
If I wanted to open the file, I'd use xdg-open or kate directly.

What I'd like:
dolphin is opened on /etc and fstab is visibly selected. Pressing "Enter" will open the document, but I still can perform actions on the file.
Comment 1 Elvis Angelaccio 2017-04-22 08:52:43 UTC
dolphin --select /etc/fstab does what you want, but I agree that Dolphin should not treat files as folders when --select is not used.
Comment 2 Julian Steinmann 2018-05-18 18:07:17 UTC
This is still the case as of Dolphin 18.04 -> confirmed.
Comment 3 Patrick Silva 2019-03-25 15:58:27 UTC
Dolphin 18.12.3 has the same behavior on Arch Linux.
Comment 4 Mike Krutov 2019-03-25 18:13:30 UTC
I've made a small patch for this: https://phabricator.kde.org/D20049
Comment 5 Justin Zobel 2021-01-03 03:25:14 UTC
(In reply to Mike Krutov from comment #4)
> I've made a small patch for this: https://phabricator.kde.org/D20049

Are you able to review this patch and also port it to Gitlab: https://invent.kde.org/system/dolphin/