gota set shell enviroment var

This commit is contained in:
jsorg71 2005-04-27 01:34:21 +00:00
parent 367c19d3fb
commit 10e7a9789b

View File

@ -334,6 +334,7 @@ int start_session(int width, int height, int bpp, char* username,
if (error == 0)
{
clearenv();
setenv("SHELL", pwd_1->pw_shell, 1);
setenv("PATH", "/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin", 1);
setenv("USER", username, 1);
g_sprintf(text, "%d", uid);