Bug 504421

Summary: Extract dialog uses a File > Save workflow, requiring a file name to be present, even though what's being selected is a folder
Product: [Applications] ark Reporter: David Nemeskey <nemeskey.david>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fastea11, fc, info, john.kizer, kostadinshishmanov, link20050703, meven, nate, nyanpasu64, rthomsen6, stepien241, tbertels, w568w
Priority: NOR Keywords: regression, usability
Version First Reported In: 25.04.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Extraction of a ZIP file with Ark: Dolphin dialog - 'Extract' button stays disabled

Description David Nemeskey 2025-05-17 16:06:12 UTC
With the new Ark interface, the whole extraction process has become a little confusing. Also, the new Extract dialog (that appears after one presses the "Extract" button in the "main" view) is broken in more ways that one.

First, Ark doesn't seem to be able to extract into an already existing directory. If I select one, and press "Extract", it just goes into that directory instead of extracting the archive there. This is irrespective off whether "Extraction into subfolder" is selected.

Second, if I then type a new name into the "Name" field, it does extract the archive. However, the name is completely ignored: if "Extraction into subfolder" is selected, the archive will be extracted into that subfolder. Otherwise, the archive will be extracted into the currect directory. In either case, that name I typed into the "Name" field is disregarded.

Actually, I don't even get why the "Name" field is needed. Why not just have a button "Extract here"? Or simply bring back the old interface...


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 David Nemeskey 2025-05-17 16:09:03 UTC
Sorry, I forgot to add the details.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon
Kernel version: 6.11.0-25-generic
Graphics Platform: Wayland
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Comment 2 realn 2025-05-19 08:30:36 UTC
Hi same here since the manjaro update this morning

System:
  Kernel: 6.1.138-1-MANJARO arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.3.5 Distro: Manjaro Linux
Display: x11 server: X.Org v: 21.1.16 with: Xwayland v: 24.1.6 driver: X:
Comment 3 John Kizer 2025-05-27 18:03:42 UTC
Retitling to be clear about the specific issue - I can reproduce that the Extract dialog won't function without a Name present, and that the Name doesn't appear to have an effect on where or how extraction occurs. Thanks!
Comment 4 John Kizer 2025-06-15 07:00:09 UTC
*** Bug 505370 has been marked as a duplicate of this bug. ***
Comment 5 kostadinshishmanov 2025-06-15 08:27:45 UTC
The issue is caused by a change in kio.

Adding my comment from the bug that was closed as duplicate:

Bisect led to

```
debd9fd15a6fae6d745fa6f3b0e5e812ac163162 is the first bad commit
commit debd9fd15a6fae6d745fa6f3b0e5e812ac163162 (HEAD)
Author: Akseli Lahtinen <akselmo@akselmo.dev>
Date:   Wed Apr 9 16:47:54 2025 +0000

    KFileWidget: Ignore selected folders during file selection
    
    During file selection, there's no reason to add the selected
    folder to the url bar (thus making it selected). User can still visually
    select the folder.
    
    Instead, just ignore any selected folders and add only files.
    We can then delete the folder checking while loop.
    
    This does not affect directory selection.
    
    BUG: 271400
    FIXED-IN: 6.14

 src/filewidgets/kfilewidget.cpp | 44 +++++++++++++++++---------------------------
 1 file changed, 17 insertions(+), 27 deletions(-)
```

https://invent.kde.org/frameworks/kio/-/commit/debd9fd15a6fae6d745fa6f3b0e5e812ac163162
Comment 6 John Kizer 2025-06-21 15:28:51 UTC
*** Bug 505007 has been marked as a duplicate of this bug. ***
Comment 7 kasimir 2025-06-22 15:49:04 UTC
Created attachment 182524 [details]
Extraction of a ZIP file with Ark: Dolphin dialog - 'Extract' button stays disabled
Comment 8 Malachi Wu 2025-07-15 09:23:37 UTC
As a temporary workaround: you can actually press Enter key on the "Extract to" dialog to confirm, even if the confirmation button is grayed out.

The main reason for this issue is that Ark uses a file-selection dialog instead of a directory-selection one. However, allowing the Enter key to work in the former is likely another bug in itself…
Comment 9 Thomas Bertels 2025-07-18 18:24:32 UTC
>As a temporary workaround: you can actually press Enter key on the "Extract to" dialog to confirm, even if the confirmation button is grayed out.

You first need to click in the File input for it to work.

An other way is to click the button to go up in the folder hierarchy, then reopen the folder, in the right pane this time.
Comment 10 Bug Janitor Service 2025-10-08 10:20:06 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/2015
Comment 11 Bug Janitor Service 2025-10-08 10:22:17 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/ark/-/merge_requests/307
Comment 12 Méven 2025-10-09 07:20:04 UTC

*** This bug has been marked as a duplicate of bug 507193 ***