]> git.ipfire.org Git - thirdparty/systemd.git/commit
ptyfwd: Always prioritize $SYSTEMD_TINT_BACKGROUND
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 20 Oct 2025 07:29:08 +0000 (09:29 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 20 Oct 2025 10:20:35 +0000 (12:20 +0200)
commit9c3359f28ab7976ac5e2f19a2f32d3b43a70b6c1
tree808490692ae1312a2b0e4a8a5549cb31a74c6708
parent5c54ffa208a94d4a4d8035bb4eb427e37f25960e
ptyfwd: Always prioritize $SYSTEMD_TINT_BACKGROUND

By giving priority to --background= we prevent users from opting
out of coloring if an explicit color is chosen by a tool wrapping
one of our own tools. Instead, let's give priority to the environment
variable, so that even if our tools are wrapped by another tool with
a different background, users can still opt out of coloring just by
setting the environment variable, which has a high chance of being
forwarded to the invocation of our own tools which makes it easy to
use to disable color tinting globally if requested by the user.
docs/ENVIRONMENT.md
src/nspawn/nspawn.c
src/run/run.c
src/shared/ptyfwd.c
src/vmspawn/vmspawn.c