From 62e3fa54b0770ae4cb789688952b7013a3df28e6 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 15 Sep 2019 23:30:48 +0200 Subject: Zstandard: read .tar.zst files $ tar cafv ~/test.tar.zst ~/test $ xdg-mime query filetype ~/test.tar.zst application/x-zstd-compressed-tar Test: $ CFLAGS="-g -O0" ./autogen.sh --enable-magic --enable-packagekit --prefix=/usr && make && sudo make install $ engrampa ~/test.tar.zst --- src/fr-init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fr-init.c') diff --git a/src/fr-init.c b/src/fr-init.c index 34b1611..2abf248 100644 --- a/src/fr-init.c +++ b/src/fr-init.c @@ -111,6 +111,7 @@ FrMimeTypeDescription mime_type_desc[] = { { "application/x-xz-compressed-tar", ".tar.xz", N_("Tar compressed with xz (.tar.xz)"), 0 }, { "application/x-zoo", ".zoo", N_("Zoo (.zoo)"), 0 }, { "application/x-zstd", ".zst", N_("Zstandard (.zst)"), 0 }, + { "application/x-zstd-compressed-tar", ".tar.zst", N_("Tar compressed with zstd (.tar.zst)"), 0 }, { "application/zip", ".zip", N_("Zip (.zip)"), 0 }, { NULL, NULL, NULL, 0 } }; @@ -165,6 +166,7 @@ FrExtensionType file_ext_type[] = { { ".tar.lzo", "application/x-lzop-compressed-tar" }, { ".tar.xz", "application/x-xz-compressed-tar" }, { ".tar.Z", "application/x-tarz" }, + { ".tar.zst", "application/x-zstd-compressed-tar" }, { ".taz", "application/x-tarz" }, { ".tbz", "application/x-bzip-compressed-tar" }, { ".tbz2", "application/x-bzip-compressed-tar" }, -- cgit v1.2.1