summaryrefslogtreecommitdiff
path: root/src/bin/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2014-09-18 09:23:00 +0200
committerSebastian Dransfeld <sd@tango.flipp.net>2014-09-18 10:48:50 +0200
commit54d5653e1bf1a6e7521dd18209b53e609725d607 (patch)
tree25d3a39b295fb8378072fabb3472ac55f6a85e92 /src/bin/efreet
parent5bc2efcf872fa6061c38fced0861aebec7ca496d (diff)
efreet: Store known desktop environments
Diffstat (limited to 'src/bin/efreet')
-rw-r--r--src/bin/efreet/efreet_desktop_cache_create.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/efreet/efreet_desktop_cache_create.c b/src/bin/efreet/efreet_desktop_cache_create.c
index cbaef0efa1..849d47c6d4 100644
--- a/src/bin/efreet/efreet_desktop_cache_create.c
+++ b/src/bin/efreet/efreet_desktop_cache_create.c
@@ -39,6 +39,7 @@ static Eina_Hash *name = NULL;
39static Eina_Hash *generic_name = NULL; 39static 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;
42 43
43static int 44static int
44cache_add(const char *path, const char *file_id, int priority EINA_UNUSED, int *changed) 45cache_add(const char *path, const char *file_id, int priority EINA_UNUSED, int *changed)
@@ -118,6 +119,8 @@ cache_add(const char *path, const char *file_id, int priority EINA_UNUSED, int *
118 ADD_ELEM(desk->generic_name, generic_name); 119 ADD_ELEM(desk->generic_name, generic_name);
119 ADD_ELEM(desk->comment, comment); 120 ADD_ELEM(desk->comment, comment);
120 ADD_ELEM(desk->exec, exec); 121 ADD_ELEM(desk->exec, exec);
122 ADD_LIST(desk->only_show_in, environments);
123 ADD_LIST(desk->not_show_in, environments);
121 eina_hash_add(file_ids, file_id, desk->orig_path); 124 eina_hash_add(file_ids, file_id, desk->orig_path);
122 eina_hash_add(desktops, desk->orig_path, desk); 125 eina_hash_add(desktops, desk->orig_path, desk);
123 } 126 }
@@ -352,6 +355,7 @@ main(int argc, char **argv)
352 generic_name = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free)); 355 generic_name = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free));
353 comment = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free)); 356 comment = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free));
354 exec = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free)); 357 exec = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free));
358 environments = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_array_string_free));
355 359
356 dirs = efreet_default_dirs_get(efreet_data_home_get(), efreet_data_dirs_get(), 360 dirs = efreet_default_dirs_get(efreet_data_home_get(), efreet_data_dirs_get(),
357 "applications"); 361 "applications");
@@ -401,6 +405,7 @@ main(int argc, char **argv)
401 STORE_HASH_ARRAY(generic_name); 405 STORE_HASH_ARRAY(generic_name);
402 STORE_HASH_ARRAY(comment); 406 STORE_HASH_ARRAY(comment);
403 STORE_HASH_ARRAY(exec); 407 STORE_HASH_ARRAY(exec);
408 STORE_HASH_ARRAY(environments);
404 if (eina_hash_population(file_ids) > 0) 409 if (eina_hash_population(file_ids) > 0)
405 { 410 {
406 hash.hash = file_ids; 411 hash.hash = file_ids;
@@ -414,6 +419,7 @@ main(int argc, char **argv)
414 eina_hash_free(generic_name); 419 eina_hash_free(generic_name);
415 eina_hash_free(comment); 420 eina_hash_free(comment);
416 eina_hash_free(exec); 421 eina_hash_free(exec);
422 eina_hash_free(environments);
417 423
418 if (old_file_ids) 424 if (old_file_ids)
419 { 425 {