forked from enlightenment/efl
Keep the first element found if there are several with equal properties.
SVN revision: 29161
This commit is contained in:
parent
b5f5fbe930
commit
f23691cb9e
|
@ -425,17 +425,22 @@ _efreet_util_cache_fill(void *data)
|
||||||
desktop = efreet_desktop_get(buf);
|
desktop = efreet_desktop_get(buf);
|
||||||
|
|
||||||
if (!desktop || desktop->type != EFREET_DESKTOP_TYPE_APPLICATION) continue;
|
if (!desktop || desktop->type != EFREET_DESKTOP_TYPE_APPLICATION) continue;
|
||||||
ecore_hash_set(desktop_by_file_id, (void *)ecore_string_instance(file_id), desktop);
|
if (!ecore_hash_get(desktop_by_file_id, file_id))
|
||||||
|
ecore_hash_set(desktop_by_file_id, (void *)ecore_string_instance(file_id),
|
||||||
|
desktop);
|
||||||
exec = ecore_file_app_exe_get(desktop->exec);
|
exec = ecore_file_app_exe_get(desktop->exec);
|
||||||
if (exec)
|
if (exec)
|
||||||
{
|
{
|
||||||
/* TODO: exec can be with and without full path, we should handle that */
|
/* TODO: exec can be with and without full path, we should handle that */
|
||||||
ecore_hash_set(desktop_by_exec, (void *)ecore_string_instance(exec), desktop);
|
if (!ecore_hash_get(desktop_by_exec, exec))
|
||||||
|
ecore_hash_set(desktop_by_exec, (void *)ecore_string_instance(exec),
|
||||||
|
desktop);
|
||||||
free(exec);
|
free(exec);
|
||||||
}
|
}
|
||||||
ecore_hash_set(file_id_by_desktop_path,
|
if (!ecore_hash_get(file_id_by_desktop_path, desktop->orig_path))
|
||||||
(void *)ecore_string_instance(desktop->orig_path),
|
ecore_hash_set(file_id_by_desktop_path,
|
||||||
(void *)ecore_string_instance(file_id));
|
(void *)ecore_string_instance(desktop->orig_path),
|
||||||
|
(void *)ecore_string_instance(file_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!file)
|
if (!file)
|
||||||
|
|
Loading…
Reference in New Issue