From 096f60a746d566cb79dba019522a54e80b460525 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Tue, 6 May 2025 16:31:55 +0200 Subject: [PATCH] Run /builtin/system/button.py after mounting /builtin --- internal_filesystem/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal_filesystem/main.py b/internal_filesystem/main.py index 72647e2f..4c775941 100644 --- a/internal_filesystem/main.py +++ b/internal_filesystem/main.py @@ -395,15 +395,14 @@ def restart_launcher(): # No need to stop the other launcher first, because it exits after building the screen start_app_by_name("com.example.launcher", True) -# Execute these if they exist: execute_script_new_thread("/autorun.py", True, False, False) # Generic run-at-boot script, for development -execute_script_new_thread("/builtin/system/button.py", True, False, False) # Button handling through IRQ try: import freezefs_mount_builtin except Exception as e: print("/main.py: WARNING: could not import/run freezefs_mount_builtin: ", e) +execute_script_new_thread("/builtin/system/button.py", True, False, False) # Button handling through IRQ # A generic "start at boot" mechanism hasn't been implemented yet, so do it like this: import uos