From 7debfabb54fb0bb98a8c40e56bd8bb1e4d142153 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Mon, 2 Sep 2019 11:55:13 +0300 Subject: [PATCH 3/3] sendto plugin: fix content type resolution. Additionally request G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE for tse_data->info. This is needed later for g_file_info_get_content_type() call inside tse_file_is_archive() Signed-off-by: Sergey Ponomarev --- plugins/thunar-sendto-email/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/thunar-sendto-email/main.c b/plugins/thunar-sendto-email/main.c index a3244703..0b1ba237 100644 --- a/plugins/thunar-sendto-email/main.c +++ b/plugins/thunar-sendto-email/main.c @@ -608,7 +608,8 @@ main (int argc, char **argv) info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME "," G_FILE_ATTRIBUTE_STANDARD_SIZE "," - G_FILE_ATTRIBUTE_STANDARD_TYPE, + G_FILE_ATTRIBUTE_STANDARD_TYPE "," + G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, G_FILE_QUERY_INFO_NONE, NULL, &error); /* check if we failed */ -- 2.20.1