summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-12-28 19:57:10 -0500
committerraveit65 <[email protected]>2016-12-29 22:01:28 +0100
commit93ea0f43c767d00b20874dcf65d1ae168d669080 (patch)
tree402d3a41ed556946ab6568335fed43c982c94991
parent57eb8a9e53e15c0098dac869c8b2d5eb2b703120 (diff)
downloadcaja-93ea0f43c767d00b20874dcf65d1ae168d669080.tar.bz2
caja-93ea0f43c767d00b20874dcf65d1ae168d669080.tar.xz
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
-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 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");
+
}
/**