Subj : Re: LHZ/LZH for Windows (typo?), 7Z for Linux, and viewing of LZH and
To   : g00r00
From : Bj�rn Wiberg
Date : Tue Aug 03 2021 04:36 pm

Hello g00r00!

ARJ and 7-ZIP revisited. :)

On 02 Aug 2021, Bj�rn Wiberg said the following...
BW>  g0> There is no enabled setup for ARJ by default in Mystic but if you wan
BW>  g0> create a view default feel free to do so and send it over, like any o
BW>  g0> archiver.
BW>
BW> Tried getting this to work, but didn't quite succeed --

I performed an strace and noticed that Mystic appears to add "/dev/null 2>&1" to the end of the View Cmd command line. This seems to break things. But on Linux, it is possible to perform the following work-around:

    Active � Yes
 Extension � ARJ
        OS � Linux
Description � ARJ32 ARJ Utilities (CUSTOM)
  Pack Cmd � arj a -e -i -y "%1" "%2"
Unpack Cmd � arj e -e -i -y -w"%3" "%1" "%2"
  View Cmd � arj l -i -y "%1" >> "%3%2" 2> /dev/null; exit $? >>

This will preserve the exit status of arj and tame the added /dev/null 2>&1
stuff.

The -i will remove any progress indicator from the output. Unsure if that one actually shows during viewing, as I haven't checked the source code, but it won't hurt, and it is at least good for packing/unpacking, I presume.

Also note that there should be no space between -w and "%3"; it appears to be the same thing for other platforms. Otherwise ARJ might complain and interpret the work directory as an archive file name.

And something similar for 7-ZIP:

      Active � Yes
   Extension � 7Z
          OS � Linux
 Description � 7-ZIP (CUSTOM)
    Pack Cmd � 7z a -y "%1" "%2"
  Unpack Cmd � 7z e -y -o"%3" "%1" "%2"
    View Cmd � 7z l -ba -y "%1" >> "%3%2" 2> /dev/null; exit $? >>

D.S.

All comments and thoughts welcome. :)

Best regards
Bj�rn

--- Mystic BBS v1.12 A47 2021/07/31 (Linux/64)
* Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)