https://bugs.kde.org/show_bug.cgi?id=516830

            Bug ID: 516830
           Summary: --new-window and --select arguments causes Dolphin to
                    execute/open file with default application
    Classification: Applications
           Product: dolphin
      Version First 25.12.2
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: Selection Mode
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 190189
  --> https://bugs.kde.org/attachment.cgi?id=190189&action=edit
Screenshot showing 2 files having been opened after using the "dolphin
--new-window --select $HOME/Downloads/Saturn_eclipse.jpg" command , and the
Dolphin window showing 2 open tabs, Download and File

SUMMARY
Starting Dolphin from command line with the --new-window and --select
<path/to/file> arguments causes Dolphin to open and the designated file to
execute/open in their default application.

STEPS TO REPRODUCE
1. Close all Dolphin window/process
2. Start from CLI with command "dolphin --new-window --select <path/to/file>"

or

1. Close all Dolphin window/process | Change current folder away from
$HOME/Downloads
2. Open Web Browser (tested with firefox)
3. Go to the download manager
4. Click the folder button or right click and select the "Show in folder"
option

OBSERVED RESULT
Scenario one 
After using the command , a Dolphin window opens with 2 tabs , one with the
file properly selected , and a tab with the file as path opens while launching
the default application for the file itself , using the command again opens a
new tab and highlight the file in the new tab.

Scenario two
After clicking "Show in folder" , a Dolphin window opens with 2 tabs , one with
the file properly selected , and a tab with the file as path opens while
launching the default application for the file itself , using show in folder
again properly select the file , changing folders and clicking "Show in folder"
causes the unintended behavior to happen again.

EXPECTED RESULT
A Dolphin window or a new tab open in Dolphin with the file selected

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 43
KDE Plasma Version: 6.6.0
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2

ADDITIONAL INFORMATION
Split view (F3 / set as default ) causes the problem to double up , as both
view will show the selected file and then the new tab , opening an image
creates 2 instances of gwenview 

Executables can thankfully be set to not run , but other file types will still
open in their default applications (such as flatpaks , images , text files ,
PDFs ect) , this represent a large security risk , you do not want a
potentially compromised HTML file to load an infected piece of code from a
remote page.

The Firefox section is also included as it's behavior differs slightly , making
Dolphin open a new window regardless of the option to "Keep a single Dolphin
instance, opening new folders in a tab" being set.

HTML pages open in the default application , which by default is Firefox on
Fedora 43 , due to an unrelated bug (bugzilla 1285711), changing Firefox's
default file manager is impossible , and you stay stuck with the one that comes
with the distribution unless removed ( I have no intention of removing Dolphin
).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to