if (!is_user)
goto not_user;
- if ((!_use_build_config) || (!bs_data_path_get(buf, sizeof(buf), "elementary/config", prof)))
+ if ((!_running_in_tree) || (!bs_data_path_get(buf, sizeof(buf), "elementary/config", prof)))
_elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s", prof);
// See elm_config_profile_dir_free: always use strdup+free
return NULL;
not_user:
- if ((!_use_build_config) || (!bs_data_path_get(buf, sizeof(buf), "elementary/config", prof)))
+ if ((!_running_in_tree) || (!bs_data_path_get(buf, sizeof(buf), "elementary/config", prof)))
snprintf(buf, sizeof(buf), "%s/config/%s", _elm_data_dir, prof);
// See elm_config_profile_dir_free: always use strdup+free
const char *dir;
size_t len = 0;
- if (_use_build_config)
+ if (_running_in_tree)
{
len = bs_data_path_get(buf, sizeof(buf), "elementary", "config");
if (len) len = strlen(buf);
Eet_File *ef = NULL;
int len = 0, i;
- if (_use_build_config) goto end;
+ if (_running_in_tree) goto end;
// if env var - use profile without question
s = _getenv_once("ELM_PROFILE");
if (s)
efl_provider_register(efl_main_loop_get(), EFL_CONFIG_INTERFACE, _efl_config_obj);
efl_provider_register(efl_main_loop_get(), EFL_CONFIG_GLOBAL_CLASS, _efl_config_obj);
efl_del_intercept_set(_efl_config_obj, _efl_config_obj_del);
- if (!_use_build_config)
+ if (!_running_in_tree)
{
_elm_config = _config_user_load();
if (_elm_config)
Eet_File *ef;
size_t len;
- if (_use_build_config || ((s = _getenv_once("ELM_PROFILE_NOSAVE")) && atoi(s)))
+ if (_running_in_tree || ((s = _getenv_once("ELM_PROFILE_NOSAVE")) && atoi(s)))
return EINA_TRUE;
len = _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
if (!profile) return EINA_FALSE;
- if (_use_build_config)
+ if (_running_in_tree)
{
if (!bs_data_path_get(buf, sizeof(buf), "elementary/config", profile)) return EINA_FALSE;
return ecore_file_exists(buf);
int ok = 0;
size_t len;
- if (_use_build_config) return;
+ if (_running_in_tree) return;
len = _elm_config_user_dir_snprintf(buf, sizeof(buf), "themes/");
if (len + 1 >= sizeof(buf))
return;
ELM_SAFE_FREE(_monitor_file_created_handler, ecore_event_handler_del);
ELM_SAFE_FREE(_monitor_file_modified_handler, ecore_event_handler_del);
ELM_SAFE_FREE(_monitor_directory_created_handler, ecore_event_handler_del);
- _use_build_config = EINA_FALSE;
+ _running_in_tree = EINA_FALSE;
}
static Eina_Bool
char buf[PATH_MAX];
int ok = 0;
- if (_use_build_config)
+ if (_running_in_tree)
ok = bs_data_path_get(buf, sizeof(buf), "elementary", "config");
else
{
# define LIBEXT ".so"
#endif
-Eina_Bool _use_build_config;
+Eina_Bool _running_in_tree;
static Elm_Version _version = { VMAJ, VMIN, VMIC, VREV };
// TIZEN_ONLY(20171114) Accessibility Highlight Frame added
traceTaskStart("elm_quicklaunch_init");
- _use_build_config = !!getenv("EFL_RUN_IN_TREE");
+ _running_in_tree = !!getenv("EFL_RUN_IN_TREE");
EINA_SAFETY_ON_FALSE_GOTO(eina_init(), fail_eina);
_elm_log_dom = eina_log_domain_register("elementary", EINA_COLOR_LIGHTBLUE);
EINA_SAFETY_ON_TRUE_GOTO(_elm_log_dom < 0, fail_eina_log);
LOCALE_DIR);
if (pfx)
{
- if (_use_build_config)
+ if (_running_in_tree)
_elm_data_dir = eina_stringshare_add(PACKAGE_BUILD_DIR "/data/elementary");
else
_elm_data_dir = eina_stringshare_add(eina_prefix_data_get(pfx));