When trying to compress a single item via file manager on Linux (*), several errors can occur:
foo1.txt
-> Operation not permitted.foo2
-> Operation not permittedbar1.dir
-> there is no such archive.bar2
-> there is no such archiveThe patch attached to this ticket fixes these errors by modifying source file GUI/p7zipForFilemanager
. Also, the patch adds logic to choose the output archive name wisely, e.g. image.iso
-> image.zip
, archive.tar.gz
-> archive.tar.gz.zip
, bar.dir
-> bar.dir.zip
.
(*) e.g. on KDE Plasma: open Dolphin -> right-click on single file/directory -> 7-zip -> Add to Zip Archive
Screenshots
You may want to check if it's not corrected in p7zip on github. It's unmaintained here for long time.
That is just a fork of someone based on the old code base. The author of 7-Zip (which p7zip was based on) recently added native Linux support, so that's what I'll be going with.
What file is this patch for?
The patch modifies source file
GUI/p7zipForFilemanager
(as mentioned in the description and also within the patch file itself).