summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2024-01-17 11:57:48 +0100
committerLuke from DC <[email protected]>2024-02-04 22:21:38 +0000
commit8cd485a58d865d89d71931b66d7e2cb2202fc1be (patch)
tree0fba18a31e5316e2b8a1da7f7d253774dd5d2085
parent108747c0c7792b33159fe7823dcb8cdc1b62e283 (diff)
downloadengrampa-8cd485a58d865d89d71931b66d7e2cb2202fc1be.tar.bz2
engrampa-8cd485a58d865d89d71931b66d7e2cb2202fc1be.tar.xz
Use unar instead of cpio for CPIO archives
-rw-r--r--src/fr-command-cpio.c6
-rw-r--r--src/fr-command-unarchiver.c1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/fr-command-cpio.c b/src/fr-command-cpio.c
index 1b380ad..31bd069 100644
--- a/src/fr-command-cpio.c
+++ b/src/fr-command-cpio.c
@@ -224,7 +224,7 @@ fr_command_cpio_extract (FrCommand *comm,
}
-const char *cpio_mime_type[] = { "application/x-cpio", NULL };
+const char *cpio_mime_type[] = { /*"application/x-cpio",*/ NULL };
static const char **
@@ -242,8 +242,8 @@ fr_command_cpio_get_capabilities (FrCommand *comm,
FrCommandCap capabilities;
capabilities = FR_COMMAND_CAN_ARCHIVE_MANY_FILES;
- if (is_program_available (CPIO_PATH, check_command))
- capabilities |= FR_COMMAND_CAN_READ;
+/* if (is_program_available (CPIO_PATH, check_command))
+ capabilities |= FR_COMMAND_CAN_READ;*/
return capabilities;
}
diff --git a/src/fr-command-unarchiver.c b/src/fr-command-unarchiver.c
index 0a40e6b..8bc9c75 100644
--- a/src/fr-command-unarchiver.c
+++ b/src/fr-command-unarchiver.c
@@ -255,6 +255,7 @@ fr_command_unarchiver_handle_error (FrCommand *comm,
const char *unarchiver_mime_type[] = { "application/zip",
"application/x-cbr",
"application/x-rar",
+ "application/x-cpio",
NULL };