From 8a1204f3489c96e44aa691de2a91a0bc84e2054d Mon Sep 17 00:00:00 2001 From: ZenWalker Date: Wed, 12 Oct 2016 02:49:44 +0200 Subject: add support for lbzip2 on .tar.bz2 files and give lbzip2 priority over bzip2 lbzip2 is an independent, multi-threaded implementation of bzip2 --- src/fr-command-tar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c index 5e7e4ea..c6dbd9b 100644 --- a/src/fr-command-tar.c +++ b/src/fr-command-tar.c @@ -198,7 +198,10 @@ add_compress_arg (FrCommand *comm) fr_process_add_arg (comm->process, "-z"); else if (is_mime_type (comm->mime_type, "application/x-bzip-compressed-tar")) - fr_process_add_arg (comm->process, "--use-compress-program=bzip2"); + if (is_program_in_path ("lbzip2")) + fr_process_add_arg (comm->process, "--use-compress-program=lbzip2"); + else + fr_process_add_arg (comm->process, "--use-compress-program=bzip2"); else if (is_mime_type (comm->mime_type, "application/x-tarz")) { if (is_program_in_path ("gzip")) -- cgit v1.2.1