You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Rename autostart to autorun etc
This commit is contained in:
@@ -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 +0,0 @@
|
||||
../autostart.py
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user