forked from enlightenment/efl
elm/config: always use default profile with EFL_RUN_IN_TREE
Summary: if this env var is set, we're probably running unit tests or something and we should ignore ELM_PROFILE Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9701
This commit is contained in:
parent
282675a5c1
commit
04846be31f
|
@ -1448,6 +1448,7 @@ _profile_fetch_from_conf(void)
|
|||
Eet_File *ef = NULL;
|
||||
int len = 0, i;
|
||||
|
||||
if (_use_build_config) goto end;
|
||||
// if env var - use profile without question
|
||||
s = getenv("ELM_PROFILE");
|
||||
if (s)
|
||||
|
@ -1468,7 +1469,7 @@ _profile_fetch_from_conf(void)
|
|||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < 2 && !_use_build_config; i++)
|
||||
for (i = 0; i < 2; i++)
|
||||
{
|
||||
// user profile
|
||||
if (i == 0)
|
||||
|
@ -1498,7 +1499,7 @@ _profile_fetch_from_conf(void)
|
|||
eet_close(ef);
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
_elm_profile = strdup("default");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue