#72 Use p7zip or 7z.dll as an "all in one dependency".

SVN
closed
nobody
None
5
2013-09-23
2013-03-17
danielpublic
No

Use p7zip/7z.dll as an "all in one dependency" instead for unRAR & lha which also would gain some formats both extraction wise and for the Archive Editors capabilities. Maybe slightly higher compression ratio and if so later inclined, encryption as well.

Discussion

  • Oddegamra
    Oddegamra
    2013-03-18

    Hello,

    this should already be the case - if unrar or lha isn't found, but 7z is, MComix should fall back to use that instead of the native tools. I did look into using 7zip.dll in the past to replace all other external extractor dependencies (mainly because the 7z executable has problems with Unicode characters on Win32), but from what I could tell, the DLL is written in C++. Python's ctypes module only deals with C extensions, and I'd rather not write a C wrapper for it. Adding a compiled dependency hurts cross-platform compatibility.

     
  • asl97
    asl97
    2013-09-19

    is it possible for it to use unar as one of the (free "all in one dependency") alternative too?

    http://code.google.com/p/theunarchiver/

    i got p7zip install but mcomix (and a few other program) still can't unrar rar files

    so i ended up looking for an unrar rpm

     
  • Oddegamra
    Oddegamra
    2013-09-19

    Hi,

    haven't heard of this program before, but the project page mentions "Multi-format unarchiver app for OS X", and the source is written in Obj-C with a bunch of OS-X specific include files, so I'm not sure how to obtain and/or test integration of this tool (I don't have any OS-X systems, or even experience with setting them up).

    I looked a bit at the archive code files, and the 7z integration has been there since '11, so I'm surprised to hear that it doesn't work for you. Can you extract 7z archives with MComix? If not, is your '7z' executable available on PATH so that MComix can find it?

     
    • asl97
      asl97
      2013-09-19

      what i mean is that rar archives is unviewable even with p7zip install till i found and install unrar.

      and from the unar download page, the extract code available for all os,
      https://code.google.com/p/theunarchiver/downloads/list

      and from the main page:
      Work is being done on making at least the unarchiving engine itself multi-platform.

      so maybe it possible to add it?

      wiki page: http://en.wikipedia.org/wiki/The_Unarchiver
      The Unarchiver (unar) is a completely free software unarchiver for RAR and other formats
      (unlike unrar which is proprietary)

      ps: i am on fedora 19, linux

       
      Last edit: asl97 2013-09-19
  • Oddegamra
    Oddegamra
    2013-09-23

    • status: open --> closed
     
  • Oddegamra
    Oddegamra
    2013-09-23

    Had a closer look at the unar command line tools just now. Unless there is a C library somewhere that I haven't found yet, replacing unrar/7z with unar does not appear possible right now: Unar does not support extracting files to STDOUT. MComix, however, relies on this feature to work around encoding problems that often cause archives to fail loading (mostly when someone uses non-ASCII file- or directory names in archives that do not force a particular encoding for these).