diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-03-07 14:07:47 -0500 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-03-07 14:07:47 -0500 |
commit | b241fd28913e87fe01419e4922259949a11c973f (patch) | |
tree | b1173105812e7eaed72eebc0a4c2feb8facd2911 /libnautilus-private | |
parent | 1ef720295bc14630522f2496d194c7c43ccc016a (diff) | |
download | nautilus-b241fd28913e87fe01419e4922259949a11c973f.tar.gz |
file: don't consider all desktop files nautilus links
Only those which match application/x-desktop directly.
Diffstat (limited to 'libnautilus-private')
-rw-r--r-- | libnautilus-private/nautilus-file.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c index 649db494f..e2b14a789 100644 --- a/libnautilus-private/nautilus-file.c +++ b/libnautilus-private/nautilus-file.c @@ -6791,9 +6791,11 @@ nautilus_file_get_symbolic_link_target_uri (NautilusFile *file) gboolean nautilus_file_is_nautilus_link (NautilusFile *file) { - /* NOTE: I removed the historical link here, because i don't think we - even detect that mimetype anymore */ - return nautilus_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"); } /** |