forked from enlightenment/enlightenment
add E_WL_FORCE environment variable to force loading of an output module during init
variable takes the name of the output module s/wl_// ; example: E_WL_FORCE=x11 this module allows easy loading of a wayland output module to override any detection which may occur by force-loading the module during startup in a later commit, an actual output detection mechanism needs to be added to run through all the possible output modes
This commit is contained in:
parent
c268302e67
commit
a70e936be1
|
@ -1087,16 +1087,29 @@ e_comp_init(void)
|
||||||
actions = eina_list_append(actions, act);
|
actions = eina_list_append(actions, act);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_WAYLAND_CLIENTS
|
||||||
|
{
|
||||||
|
const char *eng;
|
||||||
|
|
||||||
|
eng = getenv("E_WL_FORCE");
|
||||||
|
if (eng)
|
||||||
|
{
|
||||||
|
char buf[128];
|
||||||
|
|
||||||
|
snprintf(buf, sizeof(buf), "wl_%s", eng);
|
||||||
|
if (e_module_enable(e_module_new(buf)))
|
||||||
|
return EINA_TRUE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#ifndef WAYLAND_ONLY
|
#ifndef WAYLAND_ONLY
|
||||||
if (!e_comp_x_init()) return EINA_FALSE;
|
if (!e_comp_x_init()) return EINA_FALSE;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_WAYLAND_CLIENTS
|
#ifdef HAVE_WAYLAND_CLIENTS
|
||||||
if (!e_comp_wl_init())
|
e_comp_wl_init();
|
||||||
{
|
|
||||||
EINA_LOG_ERR("Failed to initialize Wayland Client Support !!");
|
|
||||||
return EINA_FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue