gota set shell enviroment var

ulab-original
jsorg71 20 years ago
parent 367c19d3fb
commit 10e7a9789b

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

Loading…
Cancel
Save