Background option for cm_PackFiles and cm_UnpackFiles

Here you can propose new features, make suggestions etc.

Moderators: petermad, Stefan2, white, Hacker

Post Reply
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Background option for cm_PackFiles and cm_UnpackFiles

Post by *Fla$her »

I would like cm_PackFiles and cm_UnpackFiles to have an analog of B1 for cm_Copy/cm_RenMov.
I think it's not difficult to add.
Overquoting is evil! ๐Ÿ‘Ž
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51909
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *ghisler(Author) »

I will consider it, thanks for the suggestion.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *Fla$her »

Why didn't you add the option to 11.50? ๐Ÿ™„
Overquoting is evil! ๐Ÿ‘Ž
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *Fla$her »

ghisler(Author) wrote: 2023-10-31, 07:39 UTC I will consider it
Have you considered it?
Overquoting is evil! ๐Ÿ‘Ž
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51909
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *ghisler(Author) »

I tried to add it, but there is currently no way to start a pack or unpack operation directly in the background. You can currently only click on "Background" during an ongoing operation, but only when it is supported by the packer/unpacker, which isn't clear from the start (e.g. archive having wrong extension).
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *Fla$her »

but there is currently no way to start a pack or unpack operation directly in the background.
For the user or you, as a developer (which I doubt)?
but only when it is supported by the packer/unpacker
If the problem is only this, then what prevents implementing a background operation according to the result of pressing the 'Background' button?
Overquoting is evil! ๐Ÿ‘Ž
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51909
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *ghisler(Author) »

If the problem is only this, then what prevents implementing a background operation according to the result of pressing the 'Background' button?
Because it can only go to background once the operation has already started.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *Fla$her »

Because it can only go to background once the operation has already started.
But we have /G for this. What prevents you from making /G1 for the background?
Overquoting is evil! ๐Ÿ‘Ž
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51909
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *ghisler(Author) »

At the moment when the operation starts it's not clear whether it can actually go to the background. The operation first needs to start in the foreground, so it can open the archive and determine whether background operation is possible, then the background button can be shown. But by then the background progress has already been shown, no way to start directly in the background.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *Fla$her »

The operation first needs to start in the foreground, so it can open the archive and and determine whether background operation is possible
It sounds weird. How can the check depend on the presence of a GUI? Why can't you perform the check before the GUI appears?
Even if the problem concerns only third-party archivers with their own GUI (like 7zG), then again, nothing prevents running such applications minimized, even if they fail.
Overquoting is evil! ๐Ÿ‘Ž
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51909
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *ghisler(Author) »

How can the check depend on the presence of a GUI?
Because the check can take a long time, when a large archive needs to be opened, or when there are multiple parts.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *Fla$her »

But this is only relevant for cm_UnpackFiles. But what about cm_PackFiles?
Overquoting is evil! ๐Ÿ‘Ž
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51909
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *ghisler(Author) »

Same problem, cm_PackFiles can add files to an already existing archive.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Re: Background option for cm_PackFiles and cm_UnpackFiles

Post by *Fla$her »

Can you do it only for new archives (with a note about this in the description, of course)?
Overquoting is evil! ๐Ÿ‘Ž
Post Reply