linuxunix wrote: Thu Dec 09, 2021 12:23 amThe encrypted file of 7z is used to open it and it is stuck directly, and can no longer be used. It can only be used after restarting the system.
What do you mean by that? How it's stuck and how it cannot be used until after reboot?
Can you post a sample 7z archive that causes the problem (whatever the problem is)?
How to open 7z encrypted files with it? It is the 7zz of the official website where I installed 7z. How can I directly call 7zz to open 7z files?
(7zz must be in $PATH, e.g. /usr/bin/)
It would be better if there is an interface to choose which suffix compressed file to open with which corresponding program.
In the vast majority of cases there's only one (or two, e.g. xz is used when unxz is not available; but unxz is usually a symlink to xz) corresponding program for a given extension.
In case of 7z, UExtract chooses the best available one in this order 7z->7za->7zr->7zz.
In case of DEB/RPM archives, it tries all available backends that are capable of extracting them, until it succeeds or runs out of backends.
But it's more complicated than that, because you can have two (or more) files having the same extension, but being created by completely different programs - .egg, for example, can be either Python's Package (which can be extracted by unzip or 7z) or ALZip Archive (which can be extracted by unegg utility).
The bottom line is, I don't see any real gain in exposing that choice to the end-user.
The whole point of UExtract is to make the extraction process as quick and automated as possible.
Greetings!