From cfe93619d02da4c932da339c6108af1c86ffe3c7 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 4 Aug 2025 09:31:47 -0500 Subject: [PATCH] don't launch boot_animation.py if there is no display. --- src/boot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/boot.py b/src/boot.py index ff4b572..1773bc4 100644 --- a/src/boot.py +++ b/src/boot.py @@ -40,4 +40,8 @@ if args is not None and len(args) > 0: working_directory="/".join(next_code_file.split("/")[:-1])) else: - supervisor.set_next_code_file("boot_animation.py") + # skip boot animation if no display + if supervisor.runtime.display is None: + supervisor.set_next_code_file("code.py") + else: + supervisor.set_next_code_file("boot_animation.py")