e - support new statgen feature and turn it on for e

use the env var as this is "soft" and will do nothing if efl doesn't
have this... but it's worth it if it does.
This commit is contained in:
Carsten Haitzler 2019-07-28 10:26:46 +01:00
parent e9f00dacd1
commit da4db1a29c
1 changed files with 4 additions and 0 deletions

View File

@ -286,11 +286,15 @@ main(int argc, char **argv)
if (getenv("E_START_MTRACK"))
e_util_env_set("MTRACK", NULL);
TS("Eina Init");
s = getenv("EINA_STATGEN");
if (!s) e_util_env_set("EINA_STATGEN", "1");
if (!eina_init())
{
e_error_message_show(_("Enlightenment cannot initialize Eina!\n"));
_e_main_shutdown(-1);
}
if (!s) e_util_env_set("EINA_STATGEN", NULL);
_e_main_shutdown_push(eina_shutdown);
if (!e_log_init())
{