From 93ea0f43c767d00b20874dcf65d1ae168d669080 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Wed, 28 Dec 2016 19:57:10 -0500 Subject: file: don't consider all desktop files caja links Only those which match application/x-desktop directly. Apply Nautilus commit https://github.com/GNOME/nautilus/commit/b241fd28913e87fe01419e4922259949a11c973f --- libcaja-private/caja-file.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libcaja-private/caja-file.c') diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index 93a4d17c..f0f89e69 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -6965,9 +6965,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"); + } /** -- cgit v1.2.1