rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=3dbfb3f0fdf051d1024fb93fb35aa4e0c40e4239
commit 3dbfb3f0fdf051d1024fb93fb35aa4e0c40e4239 Author: se.osadchy <se.osad...@samsung.com> Date: Mon Jun 13 19:09:51 2016 +0300 Fix default config path for OS X --- src/bin/config/config.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/bin/config/config.c b/src/bin/config/config.c index 0c11080..bc2c529 100644 --- a/src/bin/config/config.c +++ b/src/bin/config/config.c @@ -37,6 +37,19 @@ static Eet_Data_Descriptor *edd_profile = NULL; static Eet_Data_Descriptor *edd_keys = NULL; static Eet_Data_Descriptor *edd_color = NULL; +#ifdef __APPLE__ +Eina_Stringshare * +config_dir_get(void) +{ + const char *conf_path = NULL; + Eina_Stringshare *cfg; + + conf_path = "Library/Preferences"; + cfg = eina_stringshare_printf("%s/%s", getenv("HOME"), conf_path); + + return cfg; +} +#else Eina_Stringshare * config_dir_get(void) { @@ -53,7 +66,7 @@ config_dir_get(void) } return cfg; } - +#endif static Eina_Stringshare * _config_file_path_get(void) { @@ -505,15 +518,15 @@ config_save(void) tmp = _config_tmp_file_path_get(cfg); ef = eet_open(tmp, EET_FILE_MODE_WRITE); - if (!ef) return false; + if (!ef) return EINA_FALSE; ok = eet_data_write(ef, edd_base, CONFIG_FILE_KEY, config, 1); eet_close(ef); - if (!ok) return false; + if (!ok) return EINA_FALSE; ecore_file_mv(tmp, cfg); eina_stringshare_del(tmp); eina_stringshare_del(cfg); - return true; + return EINA_TRUE; } Config * --