entrance: fix ENTRANCE_USER env var

This commit is contained in:
Michael Bouchaud 2014-01-08 22:20:38 +01:00
parent 6c4fdc7db7
commit b7b17e6d37
1 changed files with 2 additions and 0 deletions

View File

@ -351,6 +351,8 @@ entrance_session_login(const char *session, Eina_Bool push)
}
PT("launching session %s for user %s\n", cmd, _login);
_entrance_session_run(pwd, cmd, buf);
snprintf(buf, sizeof(buf), "ENTRANCE_USER=%s", pwd->pw_name);
putenv(buf);
return ECORE_CALLBACK_CANCEL;
}