diff --git a/install.sh b/install.sh index 1670c951..714ddf32 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/internal_filesystem/apps/com.example.files/assets/files.py b/internal_filesystem/apps/com.example.files/assets/files.py index edde6588..c8325004 100644 --- a/internal_filesystem/apps/com.example.files/assets/files.py +++ b/internal_filesystem/apps/com.example.files/assets/files.py @@ -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) diff --git a/internal_filesystem/autostart.py b/internal_filesystem/autostart.py deleted file mode 120000 index 89102683..00000000 --- a/internal_filesystem/autostart.py +++ /dev/null @@ -1 +0,0 @@ -../autostart.py \ No newline at end of file diff --git a/internal_filesystem/data/README.md b/internal_filesystem/data/README.md index 2cfb1606..1eb898e6 100644 --- a/internal_filesystem/data/README.md +++ b/internal_filesystem/data/README.md @@ -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 +} diff --git a/internal_filesystem/main.py b/internal_filesystem/main.py index 9bd37b5d..141fd17e 100644 --- a/internal_filesystem/main.py +++ b/internal_filesystem/main.py @@ -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