mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-23 02:31:55 +00:00
Userland: Rely on a single authoritative source for the default PATH
This commit is contained in:
parent
61e18c681b
commit
39a3775f48
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/timschumi
Commit: 39a3775f48
Pull-request: https://github.com/SerenityOS/serenity/pull/14941
Reviewed-by: https://github.com/linusg
7 changed files with 14 additions and 7 deletions
|
@ -2189,7 +2189,7 @@ Shell::Shell()
|
|||
path.append({ path_env_ptr, strlen(path_env_ptr) });
|
||||
if (path.length())
|
||||
path.append(":"sv);
|
||||
path.append("/usr/local/sbin:/usr/local/bin:/usr/bin:/bin"sv);
|
||||
path.append(DEFAULT_PATH_SV);
|
||||
setenv("PATH", path.to_string().characters(), true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue