summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcaja-private/caja-file.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
index 6af8a886..85f7aa2f 100644
--- a/libcaja-private/caja-file.c
+++ b/libcaja-private/caja-file.c
@@ -6964,9 +6964,12 @@ caja_file_get_symbolic_link_target_uri (CajaFile *file)
gboolean
caja_file_is_caja_link (CajaFile *file)
{
- /* NOTE: I removed the historical link here, because i don't think we
- even detect that mimetype anymore */
- return caja_file_is_mime_type (file, "application/x-desktop");
+ if (file->details->mime_type == NULL) {
+ return FALSE;
+ }
+ return g_content_type_equals (eel_ref_str_peek (file->details->mime_type),
+ "application/x-desktop");
+
}
/**