2 #include "e_mod_main.h"
5 wizard_page_init(E_Wizard_Page *pg __UNUSED__)
11 wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
17 wizard_page_show(E_Wizard_Page *pg __UNUSED__)
21 if ((e_config_profile_get()) && (strlen(e_config_profile_get()) > 0))
23 if (e_user_dir_snprintf(buf, sizeof(buf), "config/%s", e_config_profile_get()) >= sizeof(buf))
25 if (ecore_file_is_dir(buf)) ecore_file_recursive_rm(buf);
27 // load profile as e_config
29 return 0; /* 1 == show ui, and wait for user, 0 == just continue */
32 wizard_page_hide(E_Wizard_Page *pg)
34 evas_object_del(pg->data);
38 wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
41 // setup ~/Desktop and ~/.e/e/fileman/favorites and
42 // ~/.e/e/applications/bar/default, maybe ~/.e/e/applications/startup/.order
44 // FIXME: should become a wizard page on its own
45 // setup fileman favorites
46 snprintf(buf, sizeof(buf),
47 "gzip -d -c < %s/data/other/efm_favorites.tar.gz | "
48 "(cd %s/.e/e/ ; tar -xkf -)",
49 e_prefix_data_get(), e_user_homedir_get());
51 // FIXME: efm favorites linked to desktop should be an option in another
54 e_user_homedir_concat(buf, sizeof(buf), _("Desktop"));
55 ecore_file_mkpath(buf);
56 e_user_homedir_snprintf(buf, sizeof(buf), "%s/%s", _("Desktop"), "home.desktop");
57 ecore_file_symlink("../.e/e/fileman/favorites/home.desktop", buf);
58 e_user_homedir_snprintf(buf, sizeof(buf), "%s/%s", _("Desktop"), "root.desktop");
59 ecore_file_symlink("../.e/e/fileman/favorites/root.desktop", buf);
60 e_user_homedir_snprintf(buf, sizeof(buf), "%s/%s", _("Desktop"), "tmp.desktop");
61 ecore_file_symlink("../.e/e/fileman/favorites/tmp.desktop", buf);
63 // save the config now everyone has modified it
66 e_sys_action_do(E_SYS_RESTART, NULL);