Menu

#229 [Fix] Errors when trying to compress single item via file manager on Linux

v1.0 (example)
open
nobody
None
5
2021-11-26
2021-07-23
Fonic
No

When trying to compress a single item via file manager on Linux (*), several errors can occur:

  1. File with extension, e.g. foo1.txt -> Operation not permitted
  2. File starting with dot, e.g. .foo2 -> Operation not permitted
  3. Directory with 'extension', e.g. bar1.dir -> there is no such archive
  4. Directory starting with dot, e.g. .bar2 -> there is no such archive

The 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

1 Attachments

Discussion

  • Sam Tansy

    Sam Tansy - 2021-11-17

    You may want to check if it's not corrected in p7zip on github. It's unmaintained here for long time.

     
    • Fonic

      Fonic - 2021-11-17

      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.

       
  • Sam Tansy

    Sam Tansy - 2021-11-25

    What file is this patch for?

     
    • Fonic

      Fonic - 2021-11-26

      The patch modifies source file GUI/p7zipForFilemanager (as mentioned in the description and also within the patch file itself).

       

Log in to post a comment.