diff options
author | rbuj <[email protected]> | 2019-09-15 23:30:48 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-10-03 03:31:21 +0000 |
commit | 62e3fa54b0770ae4cb789688952b7013a3df28e6 (patch) | |
tree | 1c93080341a18c64b2bd7182e67f19fce9290c4b /src/fr-init.c | |
parent | d054028b841d3f29fbe7f9bd57163ce4d125794f (diff) | |
download | engrampa-62e3fa54b0770ae4cb789688952b7013a3df28e6.tar.bz2 engrampa-62e3fa54b0770ae4cb789688952b7013a3df28e6.tar.xz |
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
Diffstat (limited to 'src/fr-init.c')
-rw-r--r-- | src/fr-init.c | 2 |
1 files changed, 2 insertions, 0 deletions
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" }, |