create: Pick up username in Windows.

Look up USERNAME if no USER environment variable is found.
Patch from Vincent Torri
This commit is contained in:
Andy Williams 2015-02-28 15:53:39 +00:00
parent e0477ff3cb
commit 2db478cca6
1 changed files with 2 additions and 0 deletions

View File

@ -281,6 +281,8 @@ _edi_welcome_project_new_cb(void *data, Evas_Object *obj EINA_UNUSED, void *even
evas_object_show(content);
username = getenv("USER");
if (!username)
username = getenv("USERNAME");
_edi_welcome_project_new_directory_row_add("Parent Path", NULL, row++, content);
_edi_welcome_project_new_input_row_add("Project Name", NULL, row++, content);
_edi_welcome_project_new_input_row_add("Project URL", NULL, row++, content);