cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=9350965125c312b084d179cdf1f0f44683320523
commit 9350965125c312b084d179cdf1f0f44683320523 Author: michelle legrand <[email protected]> Date: Fri Jan 30 10:49:48 2015 +0100 evil: get right Windows environment variables for home path. @fix Signed-off-by: Cedric BAIL <[email protected]> --- src/lib/evil/evil_util.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/evil/evil_util.c b/src/lib/evil/evil_util.c index 55dffb4..0fff26d 100644 --- a/src/lib/evil/evil_util.c +++ b/src/lib/evil/evil_util.c @@ -207,8 +207,17 @@ const char * evil_homedir_get(void) { char *homedir; + char *homedrive; + char *homepath; homedir = getenv("HOME"); + if (!homedir) + { + homedrive = getenv("HOMEDRIVE"); + homepath = getenv("HOMEPATH"); + if (homedrive && homepath) + asprintf(&homedir, "%s%s", homedrive, homepath); + } if (!homedir) homedir = getenv("USERPROFILE"); if (!homedir) homedir = getenv("WINDIR"); if (!homedir) homedir="C:\\"; --
