diff --git a/thunar-archive-plugin/tap-provider.c b/thunar-archive-plugin/tap-provider.c index bfc30f5..5f08d55 100644 --- a/thunar-archive-plugin/tap-provider.c +++ b/thunar-archive-plugin/tap-provider.c @@ -92,7 +92,7 @@ struct _TapProvider -static const gchar TAP_MIME_TYPES[][34] = { +static const gchar TAP_ARCHIVE_MIME_TYPES[][34] = { "application/x-7z-compressed", "application/x-7z-compressed-tar", "application/x-ar", @@ -126,6 +126,10 @@ static const gchar TAP_MIME_TYPES[][34] = { "application/x-7z-compressed", }; +static const gchar TAP_SKIP_MIME_TYPES[][40] = { + "application/vnd.oasis.opendocument.text", +}; + static GQuark tap_item_files_quark; static GQuark tap_item_folder_quark; static GQuark tap_item_provider_quark; @@ -197,8 +201,13 @@ tap_is_archive (ThunarxFileInfo *file_info) { guint n; - for (n = 0; n < G_N_ELEMENTS (TAP_MIME_TYPES); ++n) - if (thunarx_file_info_has_mime_type (file_info, TAP_MIME_TYPES[n])) + + for (n = 0; n < G_N_ELEMENTS (TAP_SKIP_MIME_TYPES); ++n) + if (thunarx_file_info_has_mime_type (file_info, TAP_SKIP_MIME_TYPES[n])) + return FALSE; + + for (n = 0; n < G_N_ELEMENTS (TAP_ARCHIVE_MIME_TYPES); ++n) + if (thunarx_file_info_has_mime_type (file_info, TAP_ARCHIVE_MIME_TYPES[n])) return TRUE; return FALSE;