diff options
author | Colomban Wendling <[email protected]> | 2024-01-17 11:57:48 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2024-02-04 22:21:38 +0000 |
commit | 63d5dfa9005c6b16d0f0ccd888cc859fca78f970 (patch) | |
tree | 4c0dcb11353aca7c39fdbfc6bb97f91edd6d9d04 | |
parent | d38402fe072483d43b1e7bfb0800314c7bcca028 (diff) | |
download | engrampa-63d5dfa9005c6b16d0f0ccd888cc859fca78f970.tar.bz2 engrampa-63d5dfa9005c6b16d0f0ccd888cc859fca78f970.tar.xz |
Use unar instead of cpio for CPIO archives
-rw-r--r-- | src/fr-command-cpio.c | 6 | ||||
-rw-r--r-- | src/fr-command-unarchiver.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/fr-command-cpio.c b/src/fr-command-cpio.c index c6a7198..3d0fcd9 100644 --- a/src/fr-command-cpio.c +++ b/src/fr-command-cpio.c @@ -219,7 +219,7 @@ fr_command_cpio_extract (FrCommand *comm, fr_process_end_command (comm->process); } -const char *cpio_mime_type[] = { "application/x-cpio", NULL }; +const char *cpio_mime_type[] = { /*"application/x-cpio",*/ NULL }; static const char ** fr_command_cpio_get_mime_types (FrCommand *comm) @@ -235,8 +235,8 @@ fr_command_cpio_get_capabilities (FrCommand *comm, FrCommandCaps 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 c7aa5e6..a6a8c2d 100644 --- a/src/fr-command-unarchiver.c +++ b/src/fr-command-unarchiver.c @@ -247,6 +247,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 }; static const char ** |