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:
michelle legrand 2015-02-13 13:17:12 +09:00 committed by ChunEon Park
parent 46d1017df7
commit 83bb597ecd
1 changed files with 6 additions and 1 deletions

View File

@ -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));