diff options
author | Đoàn Trần Công Danh <[email protected]> | 2020-12-15 23:35:36 +0700 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2023-03-22 07:28:43 -0400 |
commit | 4ee39ab04260179144ebb9ac7160df79a5b1e6fc (patch) | |
tree | 4c112d1287b9b978de8935ce18b6af2c9bb0220c /caja | |
parent | a36c201627e687e99d1c8b8f3b32e864cede7662 (diff) | |
download | engrampa-4ee39ab04260179144ebb9ac7160df79a5b1e6fc.tar.bz2 engrampa-4ee39ab04260179144ebb9ac7160df79a5b1e6fc.tar.xz |
zstd: support both old and new mime type
As of it's now, we're supporting zstd {,de}compression with specific
mime type that was reported by libmagic as configure time. Thus, the
built binaries is not correct after upgrading file-devel after
configure. In addition, this configure's time hard-coded value prevent
our users from partial upgrade.
Let's accept both mime types reported by both old and new file-devel.
For the mapping between file extensions and mime types, let's choose the
new mime value.
Diffstat (limited to 'caja')
-rw-r--r-- | caja/caja-engrampa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/caja/caja-engrampa.c b/caja/caja-engrampa.c index 0410c4a..0d303bc 100644 --- a/caja/caja-engrampa.c +++ b/caja/caja-engrampa.c @@ -190,7 +190,8 @@ static struct { { "application/x-zip", TRUE }, { "application/x-zip-compressed", TRUE }, { "application/x-zoo", TRUE }, - { ZSTD_MIME_TYPE, TRUE }, + { "application/zstd", TRUE }, + { "application/x-zstd", TRUE }, { "application/x-zstd-compressed-tar", TRUE }, { "application/zip", TRUE }, { "multipart/x-zip", TRUE }, |