Make sure we cd ~ on login

This commit is contained in:
Kevin Lange 2014-08-26 22:17:51 -07:00
parent aaeb7d10f4
commit 09df205a87

View File

@ -56,8 +56,9 @@ void toaru_auth_set_vars(void) {
setenv("SHELL", strdup(p->pw_shell), 1);
setenv("WM_THEME", strdup(p->pw_comment), 1);
}
setenv("PATH", "/usr/bin:/bin", 0);
endpwent();
setenv("PATH", "/usr/bin:/bin", 0);
chdir(getenv("HOME"));
}