diff options
author | rbuj <[email protected]> | 2019-09-15 22:35:42 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-10-03 03:31:21 +0000 |
commit | 83b63b99caeea75d5ed06ea3b055aa0a6ff4c004 (patch) | |
tree | edd0519b7e1b06d912dca1e6339406026c6001f6 /src/fr-command-cfile.c | |
parent | f6a3980e1a2d1024a4c3d7b09ac1e167ffb7980a (diff) | |
download | engrampa-83b63b99caeea75d5ed06ea3b055aa0a6ff4c004.tar.bz2 engrampa-83b63b99caeea75d5ed06ea3b055aa0a6ff4c004.tar.xz |
Zstandard: Update MIME type
MIME type is application/x-zstd:
$ lorem-ipsum-generator -p 10000 -l -f plain > lorem.txt
$ zstd lorem.txt
$ file -b --mime-type lorem.txt.zst
application/x-zstd
Test:
$ CFLAGS="-g -O0" ./autogen.sh --enable-magic --enable-packagekit --prefix=/usr && make && sudo make install
Diffstat (limited to 'src/fr-command-cfile.c')
-rw-r--r-- | src/fr-command-cfile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fr-command-cfile.c b/src/fr-command-cfile.c index 2a83836..612c4c8 100644 --- a/src/fr-command-cfile.c +++ b/src/fr-command-cfile.c @@ -299,7 +299,7 @@ fr_command_cfile_add (FrCommand *comm, compressed_filename = g_strconcat (filename, ".rz", NULL); } - else if (is_mime_type (comm->mime_type, "application/zstd")) { + else if (is_mime_type (comm->mime_type, "application/x-zstd")) { fr_process_begin_command (comm->process, "zstd"); fr_process_set_working_dir (comm->process, temp_dir); fr_process_add_arg (comm->process, filename); @@ -444,7 +444,7 @@ fr_command_cfile_extract (FrCommand *comm, fr_process_end_command (comm->process); } - else if (is_mime_type (comm->mime_type, "application/zstd")) { + else if (is_mime_type (comm->mime_type, "application/x-zstd")) { fr_process_begin_command (comm->process, "zstd"); fr_process_add_arg (comm->process, "-f"); fr_process_add_arg (comm->process, "-d"); @@ -531,7 +531,7 @@ const char *cfile_mime_type[] = { "application/x-gzip", "application/x-lzop", "application/x-rzip", "application/x-xz", - "application/zstd", + "application/x-zstd", NULL }; @@ -588,7 +588,7 @@ fr_command_cfile_get_capabilities (FrCommand *comm, if (is_program_available ("rzip", check_command)) capabilities |= FR_COMMAND_CAN_READ_WRITE; } - else if (is_mime_type (mime_type, "application/zstd")) { + else if (is_mime_type (mime_type, "application/x-zstd")) { if (is_program_available ("zstd", check_command)) capabilities |= FR_COMMAND_CAN_READ_WRITE; } @@ -631,7 +631,7 @@ fr_command_cfile_get_packages (FrCommand *comm, return PACKAGES ("lzop"); else if (is_mime_type (mime_type, "application/x-rzip")) return PACKAGES ("rzip"); - else if (is_mime_type (mime_type, "application/zstd")) + else if (is_mime_type (mime_type, "application/x-zstd")) return PACKAGES ("zstd"); return NULL; |