summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 d52964c..5e7e4ea 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -216,7 +216,10 @@ add_compress_arg (FrCommand *comm)
fr_process_add_arg (comm->process, "--use-compress-program=lzma");
else if (is_mime_type (comm->mime_type, "application/x-xz-compressed-tar"))
- fr_process_add_arg (comm->process, "--use-compress-program=xz");
+ if (is_program_in_path ("pixz"))
+ fr_process_add_arg (comm->process, "--use-compress-program=pixz");
+ else
+ fr_process_add_arg (comm->process, "--use-compress-program=xz");
else if (is_mime_type (comm->mime_type, "application/x-lzop-compressed-tar"))
fr_process_add_arg (comm->process, "--use-compress-program=lzop");