diff options
author | lukefromdc <[email protected]> | 2016-12-28 19:57:10 -0500 |
---|---|---|
committer | lukefromdc <[email protected]> | 2016-12-29 13:36:00 -0500 |
commit | 91dcd8a19665b6738f8304db127f45b503e00ce3 (patch) | |
tree | fc8179748092427d74b0007d7f74b84fee867b7b /libcaja-private | |
parent | a4f26d060486684e8d37e922ab2fbc4dcc02a85e (diff) | |
download | caja-91dcd8a19665b6738f8304db127f45b503e00ce3.tar.bz2 caja-91dcd8a19665b6738f8304db127f45b503e00ce3.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
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-file.c | 9 |
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"); + } /** |