Re: can omni.ja be viewed with MC?



On 2/14/17, Felix Miata <mrmazda earthlink net> wrote:
http://forums.mozillazine.org/viewtopic.php?f=18&t=2943023 mentions that mc

cannot view these "optimized" .zip files named omni.ja used by Firefox and
SeaMonkey. When I try renaming to omni.zip, mc reports "inconsistent extfs
archive". Is there a known solution to make these viewable in mc?

The 'unzip' program exits with error code (because it prints warnings,
to stderr) when it processes .ja files. That's why MC fails. Here's
what to do:

(1) Create a wrapper for unzip (and make it executable):

    #!/bin/sh
    if echo "$* " | grep "\\.ja "; then
      # when dealing with .ja files, suppress warnings and error code.
      unzip "$@" 2>/dev/null
      exit 0
    else
      exec unzip "$@"
    fi

(2) Edit /usr/lib/mc/extfs.d/uzip. Tell it to use the wrapper instead
of "/usr/bin/unzip".


When I try renaming to omni.zip,

You can also do "cd omni.ja/uzip://". (Or symlink it. Or edit MC's
"extension file".)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]