diff options
author | Sergey Ponomarev <stokito@gmail.com> | 2019-09-02 11:55:13 +0300 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2019-09-03 22:46:14 +0200 |
commit | e4d2d218a58601a6272262a3a604aaeecd6aa2cc (patch) | |
tree | 5df0271574a05f99215a516025dd40c13dfff1e5 /plugins/thunar-sendto-email | |
parent | 3ecc5abcf76251795944b8050c302326995584fe (diff) | |
download | thunar-e4d2d218a58601a6272262a3a604aaeecd6aa2cc.tar.gz |
sendto plugin: fix content type resolution. (Bug #15916)
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 <stokito@gmail.com>
Signed-off-by: Alexander Schwinn <alexxcons@xfce.org>
Diffstat (limited to 'plugins/thunar-sendto-email')
-rw-r--r-- | plugins/thunar-sendto-email/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |