From d4ffb37bb1a224f0896d86a8a85d9c3924bc0854 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 2 May 2024 17:07:51 +0200 Subject: nspawn, vmspawn, run0: add env var for turning off background tinting Some people are just sad, sad lost souls who don't like even the tiniest ray of color in their life. Let's add an env var knob for allowing them to turn the background tinting off, to drive the last bit of color from their life so that they can stay in their grey grey life. --- src/vmspawn/vmspawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vmspawn') diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index 9366ce111d..3279d147e0 100644 --- a/src/vmspawn/vmspawn.c +++ b/src/vmspawn/vmspawn.c @@ -1977,7 +1977,7 @@ static int run_virtual_machine(int kvm_device_fd, int vhost_device_fd) { if (r < 0) return log_error_errno(r, "Failed to create PTY forwarder: %m"); - if (!arg_background) { + if (!arg_background && shall_tint_background()) { _cleanup_free_ char *bg = NULL; r = terminal_tint_color(130 /* green */, &bg); -- cgit v1.2.3