diff options
author | Mike Blumenkrantz <m.blumenkran@samsung.com> | 2013-09-11 14:32:22 +0100 |
---|---|---|
committer | Mike Blumenkrantz <m.blumenkran@samsung.com> | 2013-10-28 13:23:32 +0000 |
commit | 55875c77cb48b6ee96f521c9327a78ebf1c2dffc (patch) | |
tree | 1de60350fca7a6545b506b6596654c7297acd2b6 | |
parent | 99f9d6f046ecbfe8245da0888c003ece520b1cee (diff) | |
download | enlightenment-55875c77cb48b6ee96f521c9327a78ebf1c2dffc.tar.gz |
feature: 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_//
-rw-r--r-- | src/bin/e_comp.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c index c8e274cd1f..31553b5c21 100644 --- a/src/bin/e_comp.c +++ b/src/bin/e_comp.c @@ -1389,16 +1389,29 @@ e_comp_init(void) } _e_comp_cfg_init(); + +#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 if (!e_comp_x_init()) return EINA_FALSE; #endif #ifdef HAVE_WAYLAND_CLIENTS - if (!e_comp_wl_init()) - { - EINA_LOG_ERR("Failed to initialize Wayland Client Support !!"); - return EINA_FALSE; - } + e_comp_wl_init(); #endif + return EINA_TRUE; } |