diff options
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | libcaja-private/caja-file.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ -[](https://travis-ci.org/mate-desktop/caja) +[](https://github.com/mate-desktop/caja/actions/workflows/builds.yml) [](https://github.com/mate-desktop/caja/releases) [](https://webchat.freenode.net/?channels=mate) diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index faa7bb50..faea7993 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -2460,6 +2460,9 @@ update_info_internal (CajaFile *file, } mime_type = g_file_info_get_content_type (info); + if (mime_type == NULL) { + mime_type = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE); + } if (eel_strcmp (file->details->mime_type, mime_type) != 0) { changed = TRUE; g_clear_pointer (&file->details->mime_type, g_ref_string_release); |