diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-06-29 05:55:04 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-08 12:04:01 +0200 |
commit | 84e10172721406d7ac81a67ac75139855481a1bb (patch) | |
tree | ca9afcd57f385b460579179ec1e33dc70a81ebdd /Userland/Applications | |
parent | 6256bdb075a3add4323ccff9a858c57de781de2a (diff) | |
download | serenity-84e10172721406d7ac81a67ac75139855481a1bb.zip |
Userland: Add `/usr/local/sbin` to `PATH` by default
`e2fsprogs` adds its tools there.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/Terminal/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp index 110f0a6487..bc942f7a97 100644 --- a/Userland/Applications/Terminal/main.cpp +++ b/Userland/Applications/Terminal/main.cpp @@ -161,7 +161,7 @@ static ErrorOr<void> run_command(String command, bool keep_open) arguments.append("-c"); arguments.append(command); } - auto env = TRY(FixedArray<StringView>::try_create({ "TERM=xterm", "PAGER=more", "PATH=/usr/local/bin:/usr/bin:/bin" })); + auto env = TRY(FixedArray<StringView>::try_create({ "TERM=xterm", "PAGER=more", "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/bin" })); TRY(Core::System::exec(shell, arguments, Core::System::SearchInPath::No, env.span())); VERIFY_NOT_REACHED(); } |