Bug 232684 - Extract Ark - Extract to wrong directory if this directory is used again
Summary: Extract Ark - Extract to wrong directory if this directory is used again
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-30 13:01 UTC by Frans Leerink
Modified: 2016-01-10 10:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frans Leerink 2010-03-30 13:01:07 UTC
Version:           2.13 (using 4.3.5 (KDE 4.3.5) "release 0", openSUSE 11.2)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31.12-0.2-desktop

Hello,

I had received a mail with an attached zip file with 9 pdf documents.

1   I click on the attached zip file and cloicked again open with Ark
2   The system showed the 4 pdf documents
3   I selected the first one and clicked the extract button and selected the folder /data/frans/temp-Lee-Home to extract the document to.
4   I selected the remaining 8 documents and want to copy them into the same folder.
5   The result is that the system copied the 9 documents into a sub-folder with a name relating to the zipfile.

In the mean time I found out that that I SHOULD HAVE TAKEN AWAY THE FLAG "EXTRACTION IN SUBFOLDER"

Can I configure somewhere which extraction flags/asteriks will be used or is it possible that the system takes allways the last used setting for the "extraction flags/asteriks"

So this  bug-report is not a bug but either a request for an answer or a development request.

Regards, Frans
Comment 1 Raphael Kubo da Costa 2010-04-14 03:20:11 UTC
Hello there.

What do you mean by "extraction flags/asterisks"? Ark will remember your last settings for "preserve paths", "open destination folder after extraction" and "close after extraction".
Comment 2 Frans Leerink 2010-04-14 10:22:23 UTC
Hello,

In step 3 I select, in the "Extract - Ark" display, the extract-to folder. In the same display there are at the right side at the top and the bottum a couple of selection fields:
 a   Selection box "Extract into subfolder"  (is allways selected)
 b   field for the Name of the new subfolder (is allways filled with a name if  point a is selected)
 c   Option "Open destination folder after extraction"
 d   Option "Preserve paths when extracting" (is allways selected)
 e   Option "Extract Selected files only" (is allways selected)
 f   Option "Extract All files  (allways is reverse of point e)

My question/request was related to the defaulting value of the fields e - f.

I do not like the fact that field: a - "Extract into subfolder"is allways selected, while I have just selected(created) the directory to extract into, regardless of what I used in earlier case.
Can I configure somewhere what defaults will be used for the a-f fields or is it
possible that the system takes allways the last used setting for these fields.


Regards,   Frans
Comment 3 Raphael Kubo da Costa 2010-05-11 05:58:08 UTC
(In reply to comment #2)
> Can I configure somewhere what defaults will be used for the a-f fields or is
> it
> possible that the system takes allways the last used setting for these fields.

Options "c" and "d" always use the last used settings. Options "e" and "f" depend on whether you have currently selected one or more files before launching the Extraction dialog: in case you have, "e" is selected; otherwise, "e" and "f" are not even shown. Option "a" is selected when you don't have a single parent folder in your archive (and "b" will be filled accordingly).

> I do not like the fact that field: a - "Extract into subfolder"is allways
> selected, while I have just selected(created) the directory to extract into,
> regardless of what I used in earlier case.

Sorry, I didn't understand this part.
Comment 4 Frans Leerink 2010-05-11 16:18:27 UTC
Hallo Raphael,

> I do not like the fact that field: a - "Extract into subfolder"is allways
> selected, while I have just selected(created) the directory to extract into,
> regardless of what I used in earlier case.

Sorry, I didn't understand this part.

Oke I try to explain.
1   I click on the zip file attachment and open it with Ark
2   The system displayed a screen with the documents from the zip file. I select  document(s) and click on button "Extract"
3    A new "Ark-Extract" screen open up, on which I can select the directory to store the document or create in the selected directory a "New Folder to store the document. In both cases I do not want field: a - "Extract into subfolder" is  selected automatically, since I have already selected or created the directory to store the document into (is already lowest folder in directory path). If I forget to remove the selection flag of field: a  the system create a superfluous subfolder.

Regards,  Frans
Comment 5 Frans Leerink 2010-06-26 00:28:27 UTC
Hello Raphael,

The Extraction flags are the v signs in the fields a,b,c and d as mentioned in my comment #2. The asterisks are actual the dots in the fields e and f as mentioned in my comment #2.

Regards,   Frans
Comment 6 Raphael Kubo da Costa 2010-06-28 05:13:29 UTC
Hi there Frans,

One solution I can think of is showing the Extraction Dialog for the first time with the default settings ("Extraction into subfolder" checked if it's not a single-folder archive etc) as it is done today.

If you click "OK", the files will be extracted as desired, and the settings will be the same you used in the first extraction (that is, the "Extraction into subfolder" checkbox will still be checked, just like it currently behaves).

However, if you uncheck if now and click "OK", next time you open the dialog it will still be unchecked.

Note that this is valid for a single Ark instance -- if you close Ark and open it again, the default settings for the "Extraction into subfolder" dialog will be used again, since we do not know if you're opening the same file, nor do we know if you want to extract the same file to a different location.

Does that sound right for you?
Comment 7 Frans Leerink 2010-06-28 10:13:23 UTC
Hello Raphael,

That is already better but still for each new single Ark instance you have to make that choise. For my use case this will not help a lot since the behavior is varying than for the first use and subsequent uses within a single Ark instance.

My use case, 4-6 times per month, is most of the time triggered by a mail with atached zip files. I want to keep my directory structure clean and with my own names/standards and therefore I allways select or create manually the folder that should hold all or part of the files contained in the zip file. So basically  I never want to use the  "Extraction into Subfolder" functionality and therefore want to switch it off only once and not for each single Ark intance.

Regards, frans
Comment 8 Raphael Kubo da Costa 2010-12-08 02:19:26 UTC
Changing the default assignee in the currently open Ark bug reports to me.
Comment 9 Elvis Angelaccio 2016-01-10 10:12:58 UTC
Git commit e356bd4c110a2b838863c8b5a145afe25b5c693b by Elvis Angelaccio.
Committed on 10/01/2016 at 10:06.
Pushed by elvisangelaccio into branch 'master'.

Add setting to disable the extraction to subfolder

This new setting defines whether to check by default the 'extraction into
subfolder' checkbox in the Extraction Dialog, when the archive has more than
one top-level entry.

The default value is true, which does not change the current Ark behavior.

Differential Revision: D744

M  +4    -0    kerfuffle/ark.kcfg
M  +1    -1    kerfuffle/extractiondialog.cpp
M  +13   -0    kerfuffle/extractionsettings.ui

http://commits.kde.org/ark/e356bd4c110a2b838863c8b5a145afe25b5c693b