summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fr-command-zip.c9
-rw-r--r--src/fr-init.c12
2 files changed, 20 insertions, 1 deletions
diff --git a/src/fr-command-zip.c b/src/fr-command-zip.c
index eaee1d8..a5326ba 100644
--- a/src/fr-command-zip.c
+++ b/src/fr-command-zip.c
@@ -381,7 +381,14 @@ fr_command_zip_handle_error (FrCommand *comm,
}
-const char *zip_mime_type[] = { "application/x-cbz",
+const char *zip_mime_type[] = {
+ "application/vnd.oasis.opendocument.presentation",
+ "application/vnd.oasis.opendocument.spreadsheet",
+ "application/vnd.oasis.opendocument.text",
+ "application/vnd.oasis.opendocument.presentation-template",
+ "application/vnd.oasis.opendocument.spreadsheet-template",
+ "application/vnd.oasis.opendocument.text-template",
+ "application/x-cbz",
"application/x-ear",
"application/x-ms-dos-executable",
"application/x-war",
diff --git a/src/fr-init.c b/src/fr-init.c
index 6aed80d..751cdcd 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -70,6 +70,12 @@ FrMimeTypeDescription mime_type_desc[] = {
{ "application/x-bzip1", ".bz", NULL, 0 },
{ "application/x-bzip1-compressed-tar", ".tar.bz", N_("Tar compressed with bzip (.tar.bz)"), 0 },
{ "application/vnd.ms-cab-compressed", ".cab", N_("Cabinet (.cab)"), 0 },
+ { "application/vnd.oasis.opendocument.presentation", ".odp", N_("OpenDocument Presentation"), 0 },
+ { "application/vnd.oasis.opendocument.spreadsheet", ".ods", N_("OpenDocument Spreadsheet"), 0 },
+ { "application/vnd.oasis.opendocument.text", ".odt", N_("OpenDocument Text"), 0 },
+ { "application/vnd.oasis.opendocument.presentation-template", ".otp", N_("OpenDocument Presentation Template"), 0 },
+ { "application/vnd.oasis.opendocument.spreadsheet-template", ".ots", N_("OpenDocument Spreadsheet Template"), 0 },
+ { "application/vnd.oasis.opendocument.text-template", ".ott", N_("OpenDocument Text Template"), 0 },
{ "application/x-cbr", ".cbr", N_("Rar Archived Comic Book (.cbr)"), 0 },
{ "application/x-cbz", ".cbz", N_("Zip Archived Comic Book (.cbz)"), 0 },
{ "application/x-cd-image", ".iso", NULL, 0 },
@@ -131,6 +137,12 @@ FrExtensionType file_ext_type[] = {
{ ".lz", "application/x-lzip" },
{ ".lzma", "application/x-lzma" },
{ ".lzo", "application/x-lzop" },
+ { ".odp", "application/vnd.oasis.opendocument.presentation" },
+ { ".ods", "application/vnd.oasis.opendocument.spreadsheet" },
+ { ".odt", "application/vnd.oasis.opendocument.text" },
+ { ".otp", "application/vnd.oasis.opendocument.presentation-template" },
+ { ".ots", "application/vnd.oasis.opendocument.spreadsheet-template" },
+ { ".ott", "application/vnd.oasis.opendocument.text-template" },
{ ".rar", "application/x-rar" },
{ ".rpm", "application/x-rpm" },
{ ".rz", "application/x-rzip" },