2 #include "e_mod_main.h"
4 /* actual module specifics */
5 E_Module *wiz_module = NULL;
8 * These are the currently planned wizard pages:
11 * . == automatic (no gui - none implemented currently)
14 * - = code here, but disabled in build
17 * o *ask for language (default selection is current locale).
18 * o *ask for initial profile
19 * o *find XDG app menus/repositories and list them let user choose which
20 * one(s) are to be used.
21 * o -ask for ibar initial app set
22 * o -ask if user wants desktop icons or not (enable fwin module but seed it
23 * with default config icons on desktop and favorites).
24 * o -ask click to focus or sloppy
25 * . *take some of current config (language, fileman, profile) and load
26 * load profile, apply language to it and save, restart e.
28 * why are some disabled? profiels take care of this and do a better job
29 * at collecting all the things together. for example illume makes no sense
30 * with pointer focus and ibar icons/desktop makes no sense.
34 EAPI E_Module_Api e_modapi =
41 _cb_sort_files(char *f1, char *f2)
43 return strcmp(f1, f2);
47 e_modapi_init(E_Module *m)
56 snprintf(buf, sizeof(buf), "%s/%s", e_module_dir_get(m), MODULE_ARCH);
57 files = ecore_file_ls(buf);
58 files = eina_list_sort(files, 0, (Eina_Compare_Cb)_cb_sort_files);
59 EINA_LIST_FREE(files, file)
61 if (!strncmp(file, "page_", 5))
65 snprintf(buf, sizeof(buf), "%s/%s/%s",
66 e_module_dir_get(m), MODULE_ARCH, file);
67 handle = dlopen(buf, RTLD_NOW | RTLD_GLOBAL);
69 e_wizard_page_add(handle,
70 dlsym(handle, "wizard_page_init"),
71 dlsym(handle, "wizard_page_shutdown"),
72 dlsym(handle, "wizard_page_show"),
73 dlsym(handle, "wizard_page_hide"),
74 dlsym(handle, "wizard_page_apply"));
77 // if its an executable...
80 printf("%s\n", dlerror());
91 e_modapi_shutdown(E_Module *m __UNUSED__)
96 // e_module_disable(m); /* disable - on restart this won't be loaded now */
97 // e_sys_action_do(E_SYS_RESTART, NULL); /* restart e - cleanly try settings */
102 e_modapi_save(E_Module *m __UNUSED__)