Skip to content
Permalink
Browse files

Add support for OpenDocument formats

  • Loading branch information...
vkareh committed Aug 1, 2018
1 parent 7c0038a commit 10e665ff9b410553582f3764674fabe8d6a3e246
Showing with 20 additions and 1 deletion.
  1. +8 −1 src/fr-command-zip.c
  2. +12 −0 src/fr-init.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",
@@ -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" },

0 comments on commit 10e665f

Please sign in to comment.
You can’t perform that action at this time.