Use portable eina util methods for paths.
Should fall back correctly on Windows now
This commit is contained in:
parent
3994be1264
commit
c216a32791
|
@ -60,7 +60,7 @@ EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
|
|||
|
||||
PKG_CHECK_MODULES([EFL],
|
||||
[
|
||||
eina >= 1.8.0
|
||||
eina >= 1.14.99
|
||||
evas >= 1.8.0
|
||||
ecore >= 1.8.0
|
||||
edje >= 1.8.0
|
||||
|
|
|
@ -139,7 +139,7 @@ _edi_welcome_project_choose_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNU
|
|||
|
||||
elm_fileselector_expandable_set(fs, EINA_TRUE);
|
||||
elm_fileselector_folder_only_set(fs, EINA_TRUE);
|
||||
elm_fileselector_path_set(fs, getenv("HOME"));
|
||||
elm_fileselector_path_set(fs, eina_environment_home_get());
|
||||
elm_fileselector_sort_method_set(fs, ELM_FILESELECTOR_SORT_BY_FILENAME_ASC);
|
||||
|
||||
evas_object_resize(win, 380 * elm_config_scale_get(), 260 * elm_config_scale_get());
|
||||
|
|
|
@ -255,7 +255,7 @@ edi_create_efl_project(const char *parentdir, const char *name, const char *url,
|
|||
|
||||
source = PACKAGE_DATA_DIR "/skeleton/eflproject.tar.gz";
|
||||
extract = "tar zxf %s -C %s";
|
||||
snprintf(tmp, sizeof(tmp), "/tmp/edi_%s", name);
|
||||
snprintf(tmp, sizeof(tmp), "%s/edi_%s", eina_environment_tmp_get(), name);
|
||||
snprintf(dest, sizeof(dest), "%s/%s", parentdir, name);
|
||||
|
||||
INF("Creating project \"%s\" at path %s for %s<%s>\n", name, dest, user, email);
|
||||
|
|
|
@ -24,7 +24,7 @@ START_TEST(edi_initialization)
|
|||
|
||||
fail_if(edi_init() != 1);
|
||||
|
||||
path = "/tmp";
|
||||
path = eina_environment_tmp_get();
|
||||
edi_project_set(path);
|
||||
ck_assert_str_eq(edi_project_get(), path);
|
||||
|
||||
|
|
Loading…
Reference in New Issue