Summary: | dolphin <path-to-file> executes the file rather than opening a dolphin window with the file highlighted | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | darkphoenix534 |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | kdedev, kfm-devel, matteo.dubuisson |
Priority: | NOR | ||
Version First Reported In: | 25.08.1 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
darkphoenix534
2025-09-21 21:50:18 UTC
nautilus <file-path> also defaults to selecting the file in file-manager. I confirm this behavior on git-master. It does seem counter intuitive that if I try to open a file using Dolphin that it would be executed, rather than opened in Dolphin like I asked As a user, I'd expect that if I wanted to execute a file when passed to Dolphin, it would be available with a flag, rather than be done as default. I'm not sure if this behavior is intentional, so I'm keeping it as a bug for now, since it's not consistent with other file managers and (some) user expectations. Original summary dolphin <path-to-file> should default to --selection and dolphin window doesn’t show the containing folder. I would be interested to do this if it's still possible this is what I proposed on matrix : I write the path of a file directly in the search bar it doesn't open the file or display the current folder of the file ? Would it be interesting to implement this feature when setting the path of a file, the file is open with kate (1) the current directory of the file is shown (2) ? I would say for text files solution (1) is preferable but for binary files solution (2) is preferable. I have an idea text extensions as txt, cpp, js, csv, .... are recognized and the file is open else the current path of the file is displayed and it's the user to do something ? Could it be an idea or do you have an advice or something better ? What do you think ? @matdubuisson Your message was quite confusing. For how to implement this, --selection code is already there in the codebase, just make --selection the default, i.e no need to pass --selection on command-line. And introduce new command-line --execute whose implementaion would be the current default behaviour. I would have done PR myself but will have to install KDE build environment in contrast to the change which is very minimal, also wanted developer opinions. Ok sorry I did't understand that was for command line I thought it was about the search bar in the gui. Actually I try to contribute for the first time (In reply to matdubuisson from comment #6) > Ok sorry I did't understand that was for command line I thought it was about > the search bar in the gui. Actually I try to contribute for the first time Ohhhh ok, now that you mention this, i see the behaviour is set to execution behaviour for file-path and when i compared this to nautilus file manager - it defaults to opening the directory and selecting the file. Maybe this also needs fixing. But i have a feeling that command-line and file-path in address-bar is using the same code. I would want to try if you are ok ? I think it could be (In reply to matdubuisson from comment #8) > I would want to try if you are ok ? I think it could be a first good move (In reply to matdubuisson from comment #9) > (In reply to matdubuisson from comment #8) > > I would want to try if you are ok ? I think it could be a first good move i haven't contributed in terms of code in kde at all, i just created this bug report. So i don't know what are the guidelines for contributing code to kde. From my side i don't have any issue, refer to my previous message of what changes i expect, thats all. You can maybe ask in dolphin matrix group on how to process with the PR and all. Thank you for working on this. I have already done a request on matrix actually but I haven't received messages yet (In reply to matdubuisson from comment #6) > Ok sorry I did't understand that was for command line I thought it was about > the search bar in the gui. Actually I try to contribute for the first time Welcome to the KDE community. Make sure to check out https://community.kde.org/Get_Involved for detailed info on getting started as a new contributor. The KDE bug tracker is for bugs rather than development work. The New Contributor channel in Matrix is a better place to ask questions or ask for advice about development work on fixes. |