summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2016-10-12 02:49:44 +0200
committerZenWalker <[email protected]>2016-10-12 02:49:44 +0200
commit8a1204f3489c96e44aa691de2a91a0bc84e2054d (patch)
tree6186dfbe622f418f6b37b84537d2a3d30ac986c4 /src
parentd9fa51d3a2a88e0b800bfc989ca285f1a6125f69 (diff)
downloadengrampa-8a1204f3489c96e44aa691de2a91a0bc84e2054d.tar.bz2
engrampa-8a1204f3489c96e44aa691de2a91a0bc84e2054d.tar.xz
add support for lbzip2 on .tar.bz2 files
and give lbzip2 priority over bzip2 lbzip2 is an independent, multi-threaded implementation of bzip2
Diffstat (limited to 'src')
-rw-r--r--src/fr-command-tar.c5
1 files changed, 4 insertions, 1 deletions
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"))