summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2016-10-10 12:35:59 +0200
committerZenWalker <[email protected]>2016-10-10 12:35:59 +0200
commitd9fa51d3a2a88e0b800bfc989ca285f1a6125f69 (patch)
treeff1b68e4f9c89edf2b37af49a2cad1dfa90e9394 /src
parent3b10c48d645f82b02386177ce741f04160d3a721 (diff)
downloadengrampa-d9fa51d3a2a88e0b800bfc989ca285f1a6125f69.tar.bz2
engrampa-d9fa51d3a2a88e0b800bfc989ca285f1a6125f69.tar.xz
add support for pixz on .tar.xz files
and give pixz priority over xz more info: https://github.com/mate-desktop/engrampa/pull/111
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");