Rename autostart to autorun etc

This commit is contained in:
Thomas Farstrike
2025-04-27 22:11:57 +02:00
parent e9db24b239
commit bafdad17d7
5 changed files with 11 additions and 6 deletions
+1
View File
@@ -9,6 +9,7 @@ pushd internal_filesystem/
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r apps :/
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r lib :/
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r resources :/
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r data :/
popd
@@ -139,7 +139,10 @@ def file_explorer_event_cb(e):
print(f"Selected file: {file_path}")
subwindow.clean()
explorer = lv.file_explorer(subwindow)
explorer.set_size(lv.pct(100), lv.pct(100))
explorer.set_root_path("L:/")
explorer.explorer_set_quick_access_path(lv.EXPLORER.HOME_DIR,"/")
explorer.explorer_open_dir("/apps")
#explorer.set_root_path("L:/")
explorer.add_event_cb(file_explorer_event_cb, lv.EVENT.VALUE_CHANGED, None)
-1
View File
@@ -1 +0,0 @@
../autostart.py
+5 -3
View File
@@ -1,6 +1,8 @@
Apps can write their data (like settings) here, in a subfolder of their reversed fully qualified name, such as:
/internal_filesystem/com.example.app1/settings.ini may contain:
/internal_filesystem/com.example.app1/settings.json may contain:
server = example.com
port = 443
{
"server": "example.com",
"port" : 443
}
+1 -1
View File
@@ -354,7 +354,7 @@ def start_app(app_dir, return_to_launcher=True):
def run_launcher():
start_app("/apps/com.example.launcher", False)
execute_script_new_thread("/autostart.py", True, False)
execute_script_new_thread("/autorun.py", True, False)
run_launcher()
# If we got this far without crashing, then no need to rollback the update