bsod: do not check for color support

When invoked on a running system, bsod would not print the qrcode.
The check for "color support" on stdout is pointless, since we're not
printing to stdout but to a terminal fd that is opened separately.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-10-29 09:41:23 +01:00
parent f0764b98e5
commit 5a64c86936
3 changed files with 38 additions and 12 deletions
+3 -1
View File
@@ -212,7 +212,9 @@ static int display_emergency_message_fullscreen(const char *message) {
goto cleanup;
}
r = print_qrcode_full(stream, "Scan the QR code", message, qr_code_start_row, qr_code_start_column, w.ws_col, w.ws_row);
r = print_qrcode_full(stream, "Scan the QR code",
message, qr_code_start_row, qr_code_start_column, w.ws_col, w.ws_row,
/* check_tty= */ false);
if (r < 0)
log_warning_errno(r, "QR code could not be printed, ignoring: %m");