summaryrefslogtreecommitdiff
path: root/src/bin/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2014-09-25 08:47:18 +0200
committerSebastian Dransfeld <sd@tango.flipp.net>2014-09-25 08:47:45 +0200
commit793fd5e84775931cf491bf81ccbbee174feda05c (patch)
treeae7a7eb7692bad4944abc0e9dabd9f17bf4cef99 /src/bin/efreet
parentc700192736ef2ca8975a050e5be207df9f19f62c (diff)
efreet: Implement fields added by desktop spec 1.1
Diffstat (limited to 'src/bin/efreet')
-rw-r--r--src/bin/efreet/efreet_desktop_cache_create.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/efreet/efreet_desktop_cache_create.c b/src/bin/efreet/efreet_desktop_cache_create.c
index ff0a106437..4fa3ef4397 100644
--- a/src/bin/efreet/efreet_desktop_cache_create.c
+++ b/src/bin/efreet/efreet_desktop_cache_create.c
@@ -40,6 +40,7 @@ static Eina_Hash *generic_name = NULL;
40static Eina_Hash *comment = NULL; 40static Eina_Hash *comment = NULL;
41static Eina_Hash *exec = NULL; 41static Eina_Hash *exec = NULL;
42static Eina_Hash *environments = NULL; 42static Eina_Hash *environments = NULL;
43static Eina_Hash *keywords = NULL;
43 44
44static int 45static int
45cache_add(const char *path, const char *file_id, int priority EINA_UNUSED, int *changed) 46cache_add(const char *path, const char *file_id, int priority EINA_UNUSED, int *changed)
@@ -112,6 +113,7 @@ cache_add(const char *path, const char *file_id, int priority EINA_UNUSED, int *
112 array->array[array->array_count++] = desk->orig_path; \ 113 array->array[array->array_count++] = desk->orig_path; \
113 eina_hash_set((hash), data, array); \ 114 eina_hash_set((hash), data, array); \
114 } 115 }
116 /* Desktop Spec 1.0 */
115 ADD_LIST(desk->mime_types, mime_types); 117 ADD_LIST(desk->mime_types, mime_types);
116 ADD_LIST(desk->categories, categories); 118 ADD_LIST(desk->categories, categories);
117 ADD_ELEM(desk->startup_wm_class, startup_wm_class); 119 ADD_ELEM(desk->startup_wm_class, startup_wm_class);
@@ -123,6 +125,8 @@ cache_add(const char *path, const char *file_id, int priority EINA_UNUSED, int *
123 ADD_LIST(desk->not_show_in, environments); 125 ADD_LIST(desk->not_show_in, environments);
124 eina_hash_add(file_ids, file_id, desk->orig_path); 126 eina_hash_add(file_ids, file_id, desk->orig_path);
125 eina_hash_add(desktops, desk->orig_path, desk); 127 eina_hash_add(desktops, desk->orig_path, desk);
128 /* Desktop Spec 1.1 */
129 ADD_LIST(desk->keywords, keywords);
126 } 130 }
127 else 131 else
128 efreet_desktop_free(desk); 132 efreet_desktop_free(desk);
@@ -388,6 +392,7 @@ main(int argc, char **argv)
388 comment = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free)); 392 comment = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free));
389 exec = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free)); 393 exec = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free));
390 environments = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free)); 394 environments = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free));
395 keywords = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free));
391 396
392 dirs = efreet_default_dirs_get(efreet_data_home_get(), efreet_data_dirs_get(), 397 dirs = efreet_default_dirs_get(efreet_data_home_get(), efreet_data_dirs_get(),
393 "applications"); 398 "applications");
@@ -438,6 +443,7 @@ main(int argc, char **argv)
438 STORE_HASH_ARRAY(comment); 443 STORE_HASH_ARRAY(comment);
439 STORE_HASH_ARRAY(exec); 444 STORE_HASH_ARRAY(exec);
440 STORE_HASH_ARRAY(environments); 445 STORE_HASH_ARRAY(environments);
446 STORE_HASH_ARRAY(keywords);
441 if (eina_hash_population(file_ids) > 0) 447 if (eina_hash_population(file_ids) > 0)
442 { 448 {
443 hash.hash = file_ids; 449 hash.hash = file_ids;
@@ -452,6 +458,7 @@ main(int argc, char **argv)
452 eina_hash_free(comment); 458 eina_hash_free(comment);
453 eina_hash_free(exec); 459 eina_hash_free(exec);
454 eina_hash_free(environments); 460 eina_hash_free(environments);
461 eina_hash_free(keywords);
455 462
456 if (old_file_ids) 463 if (old_file_ids)
457 { 464 {