forked from enlightenment/enventor
enventor_main: use elm_app_data_get_dir()
Summary: Replacing PACKAGE_DATA_DIR by elm_app_data_get_dir() function. This function will look for the data directory from where we are executing the program and not from where we installed it. This enable us to have separated binaries (for Windows) in another directory different from the configure's prefix. @fix Projects: #enventor Differential Revision: https://phab.enlightenment.org/D1964
This commit is contained in:
parent
46d1017df7
commit
83bb597ecd
|
@ -96,8 +96,13 @@ enventor_init(int argc, char **argv)
|
|||
_enventor_log_dom = EINA_LOG_DOMAIN_GLOBAL;
|
||||
}
|
||||
|
||||
elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
|
||||
elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
|
||||
elm_app_compile_lib_dir_set(PACKAGE_LIB_DIR);
|
||||
elm_app_info_set(enventor_init, "enventor", "images/logo.png");
|
||||
|
||||
snprintf(EDJE_PATH, sizeof(EDJE_PATH), "%s/themes/enventor.edj",
|
||||
PACKAGE_DATA_DIR);
|
||||
elm_app_data_dir_get());
|
||||
|
||||
srand(time(NULL));
|
||||
|
||||
|
|
Loading…
Reference in New Issue