On Sat, 23 Jan 2016 01:14:29 +0100
- Raqua - <
raquac...@gmail.com> wrote:
> That is a good idea, unfortunatelly, it does not work either. :(
>
> I have created file like this:
> #!/bin/bash
> echo "x" > /home/raqua/packer.txt
> /usr/bin/xz -T $(nproc) "$@"
>
>
> I have pointed Krusader in dependencies to this file instead
> of /usr/bin/xz. I have tested that invoking this file manually worked.
> When I initiated compresion from Krusader, it worked fine, but used
> only once thread. After some debugging I found out, that it is still
> using the original xz dependency, even though it shows otherwise in
> settings (I have restarted Krusader in between).
> The packer.txt file in my home was not created.
> So I changed xz back and ser my script instead of "rar" which I have
> not installed and therefore there was an empty slot in dependencies
> GUI. This time, when invoked, packer.txt file was created, but no
> archive was done. This, however probably failed due to differences
> between rar and xz API. But it confirmed my suspicion that original
> xz is called instead my xz wrapper from Krusader.
That's some good investigative work. I can re-create the bug, except
what it's doing. Probably it's passing the "-T 4" switch after the "-f"