[tracker/tracker-0.10] tracker-miner-applications: Do not warn for "Hidden" desktop files
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-miner-applications: Do not warn for "Hidden" desktop files
- Date: Fri, 25 Nov 2011 19:30:00 +0000 (UTC)
commit ca70cd1fd6ce5513071e64ebdf495835f8b6c5df
Author: JÃrg Billeter <j bitron ch>
Date: Tue Nov 15 16:20:36 2011 +0000
tracker-miner-applications: Do not warn for "Hidden" desktop files
src/miners/fs/tracker-miner-applications.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-applications.c b/src/miners/fs/tracker-miner-applications.c
index cf23f80..ec6b0fa 100644
--- a/src/miners/fs/tracker-miner-applications.c
+++ b/src/miners/fs/tracker-miner-applications.c
@@ -338,13 +338,6 @@ get_desktop_key_file (GFile *file,
return NULL;
}
- if (g_key_file_get_boolean (key_file, GROUP_DESKTOP_ENTRY, "Hidden", NULL)) {
- g_set_error_literal (error, miner_applications_error_quark, 0, "Desktop file is 'hidden', not gathering metadata for it");
- g_key_file_free (key_file);
- g_free (path);
- return NULL;
- }
-
str = g_key_file_get_string (key_file, GROUP_DESKTOP_ENTRY, "Type", NULL);
if (G_UNLIKELY (!str)) {
@@ -851,6 +844,8 @@ process_file_cb (GObject *object,
g_clear_error (&error);
error = g_error_new_literal (miner_applications_error_quark, 0, "File is not a key file");
+ } else if (g_key_file_get_boolean (data->key_file, GROUP_DESKTOP_ENTRY, "Hidden", NULL)) {
+ error = g_error_new_literal (miner_applications_error_quark, 0, "Desktop file is 'hidden', not gathering metadata for it");
} else {
process_desktop_file (data, file_info, &error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]