[file-roller/wip/jtojnar/engrampa-backports: 18/21] command-7z: Fix EPUB feature support
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/wip/jtojnar/engrampa-backports: 18/21] command-7z: Fix EPUB feature support
- Date: Wed, 27 Jul 2022 02:04:05 +0000 (UTC)
commit 379c7f4b7a3cb4dd8426fcbeec13329537e4175b
Author: rbuj <robert buj gmail com>
Date: Mon Oct 5 15:58:40 2020 +0200
command-7z: Fix EPUB feature support
EPUB support was added in
https://gitlab.gnome.org/GNOME/file-roller/commit/cfc9fa7c507d54f69164a4e1778a3b1fc3bda8de but write support
was not declared.
Taken from https://github.com/mate-desktop/engrampa/commit/84fb5cfe96263f79e50b68a5a6996e40c514cf74
src/fr-command-7z.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index 1029d9a3..b9fdfbbf 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -704,7 +704,8 @@ fr_command_7z_get_capabilities (FrArchive *archive,
else
capabilities |= FR_ARCHIVE_CAN_READ;
- if (_g_mime_type_matches (mime_type, "application/x-cbz")
+ if (_g_mime_type_matches (mime_type, "application/epub+zip")
+ || _g_mime_type_matches (mime_type, "application/x-cbz")
|| _g_mime_type_matches (mime_type, "application/x-ms-dos-executable")
|| _g_mime_type_matches (mime_type, "application/zip"))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]