1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

Terminal: Add /usr/local/bin to the default PATH.

Now that we're building all these ports, let's have them in the PATH. :^)
This commit is contained in:
Andreas Kling 2019-05-29 06:34:54 +02:00
parent 6785250f8c
commit 1361721053

View file

@ -68,7 +68,7 @@ static void make_shell(int ptm_fd)
exit(1); exit(1);
} }
char* args[] = { "/bin/Shell", nullptr }; char* args[] = { "/bin/Shell", nullptr };
char* envs[] = { "TERM=xterm", "PATH=/bin:/usr/bin", nullptr }; char* envs[] = { "TERM=xterm", "PATH=/bin:/usr/bin:/usr/local/bin", nullptr };
rc = execve("/bin/Shell", args, envs); rc = execve("/bin/Shell", args, envs);
if (rc < 0) { if (rc < 0) {
perror("execve"); perror("execve");