|
|
|
@ -23,13 +23,12 @@ wizard_page_show(E_Wizard_Page *pg __UNUSED__) |
|
|
|
|
// make dir for favorites and install ones shipped
|
|
|
|
|
snprintf(buf, sizeof(buf), "%s/fileman/favorites", e_user_dir_get()); |
|
|
|
|
ecore_file_mkpath(buf); |
|
|
|
|
snprintf(buf, sizeof(buf), "%s/favorites", e_wizard_dir_get()); |
|
|
|
|
e_prefix_data_concat(buf, sizeof(buf), "data/favorites"); |
|
|
|
|
files = ecore_file_ls(buf); |
|
|
|
|
if (!files) return 0; |
|
|
|
|
EINA_LIST_FREE(files, file) |
|
|
|
|
{ |
|
|
|
|
snprintf(buf, sizeof(buf), "%s/favorites/%s", |
|
|
|
|
e_wizard_dir_get(), file); |
|
|
|
|
e_prefix_data_snprintf(buf, sizeof(buf), "data/favorites/%s", file); |
|
|
|
|
snprintf(buf2, sizeof(buf2), "%s/fileman/favorites/%s", |
|
|
|
|
e_user_dir_get(), file); |
|
|
|
|
ecore_file_cp(buf, buf2); |
|
|
|
|