Commit 6d1d3356 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Bug 573991 – Nautilus does not recognize some .desktop files as

2009-03-04  Alexander Larsson  <alexl@redhat.com>

	Bug 573991 – Nautilus does not recognize some .desktop files as launchers

        * libnautilus-private/nautilus-link.c:
        (nautilus_link_get_link_info_given_file_contents):
	Don't try to sniff the contents, we'll handle that when parsing anyway.
	And sniffing breaks if there are too much comments before the first group in
	the desktop file.



svn path=/trunk/; revision=15052
parent 0c4c5c31
2009-03-04 Alexander Larsson <alexl@redhat.com>
Bug 573991 – Nautilus does not recognize some .desktop files as launchers
* libnautilus-private/nautilus-link.c:
(nautilus_link_get_link_info_given_file_contents):
Don't try to sniff the contents, we'll handle that when parsing anyway.
And sniffing breaks if there are too much comments before the first group in
the desktop file.
2009-03-03 Cosimo Cecchi <cosimoc@gnome.org>
* src/nautilus-application.c (nautilus_application_finalize),
......@@ -22,7 +32,7 @@
(nautilus_link_local_set_icon):
Don't localize 'Icon=' keys.
Fixes Launchpad Bug #336679.
2009-03-03 Cosimo Cecchi <cosimoc@gnome.org>
* src/nautilus-application.c (nautilus_application_finalize),
......
......@@ -87,18 +87,6 @@ is_local_file_a_link (const char *uri)
return link;
}
static gboolean
is_link_data (const char *file_contents, int file_size)
{
char *mimetype;
gboolean res;
mimetype = g_content_type_guess (NULL, file_contents, file_size, NULL);
res = is_link_mime_type (mimetype);
g_free (mimetype);
return res;
}
static gboolean
_g_key_file_load_from_gfile (GKeyFile *key_file,
GFile *file,
......@@ -555,10 +543,6 @@ nautilus_link_get_link_info_given_file_contents (const char *file_contents,
char **only_show_in;
char **not_show_in;
if (!is_link_data (file_contents, link_file_size)) {
return;
}
key_file = g_key_file_new ();
if (!g_key_file_load_from_data (key_file,
file_contents,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment