can omni.ja be viewed with MC?
Mooffie
mooffie at gmail.com
Wed Feb 22 13:30:53 UTC 2017
On 2/14/17, Felix Miata <mrmazda at 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".)
More information about the mc
mailing list