summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2017-11-21 15:30:31 +0100
committerErnestas Kulik <ernestask@gnome.org>2018-03-24 20:02:46 +0200
commitb4d85b1318196947f8d18a9b3ed0fc3055e6b4ae (patch)
treefa7ee2e3d2544eab8f80e1f2d420952a2fb7299c
parentd6a40167a0e8895a47d5c2a69328f4af101af2b7 (diff)
downloadnautilus-b4d85b1318196947f8d18a9b3ed0fc3055e6b4ae.tar.gz
mime-actions: Add Microsoft mime types
Seems they are using some custom mime types for Microsoft Office. They can be found at https://blogs.msdn.microsoft.com/vsofficedeveloper/2008/05/08/office-2007-file-format-mime-types-for-http-content-streaming-2/ This commits adds them. Fixes #128
-rw-r--r--src/nautilus-mime-actions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index 18066d617..350ed1eb8 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -92,6 +92,7 @@ typedef struct
GQueue *unhandled_uris;
} ApplicationLaunchParameters;
+/* Microsoft mime types at https://blogs.msdn.microsoft.com/vsofficedeveloper/2008/05/08/office-2007-file-format-mime-types-for-http-content-streaming-2/ */
struct
{
char *name;
@@ -128,6 +129,7 @@ struct
"application/x-kword",
"application/x-kword-crypt",
"application/x-lyx",
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
NULL}},
{ N_("Illustration"),
{ "application/illustrator",
@@ -184,6 +186,7 @@ struct
"application/vnd.oasis.opendocument.presentation",
"application/x-magicpoint",
"application/x-kpresenter",
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation",
NULL}},
{ N_("Spreadsheet"),
{ "application/vnd.lotus-1-2-3",
@@ -198,6 +201,7 @@ struct
"application/x-quattropro",
"application/x-sc",
"application/x-siag",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
NULL}},
{ N_("Text File"),
{ "text/plain",