Skip to content

Commit bafdad1

Browse files
Rename autostart to autorun etc
1 parent e9db24b commit bafdad1

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pushd internal_filesystem/
99
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r apps :/
1010
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r lib :/
1111
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r resources :/
12+
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r data :/
1213

1314
popd
1415

internal_filesystem/apps/com.example.files/assets/files.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ def file_explorer_event_cb(e):
139139
print(f"Selected file: {file_path}")
140140

141141

142+
subwindow.clean()
142143
explorer = lv.file_explorer(subwindow)
143144
explorer.set_size(lv.pct(100), lv.pct(100))
144-
explorer.set_root_path("L:/")
145+
explorer.explorer_set_quick_access_path(lv.EXPLORER.HOME_DIR,"/")
146+
explorer.explorer_open_dir("/apps")
147+
#explorer.set_root_path("L:/")
145148
explorer.add_event_cb(file_explorer_event_cb, lv.EVENT.VALUE_CHANGED, None)

internal_filesystem/autostart.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

internal_filesystem/data/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Apps can write their data (like settings) here, in a subfolder of their reversed fully qualified name, such as:
22

3-
/internal_filesystem/com.example.app1/settings.ini may contain:
3+
/internal_filesystem/com.example.app1/settings.json may contain:
44

5-
server = example.com
6-
port = 443
5+
{
6+
"server": "example.com",
7+
"port" : 443
8+
}

internal_filesystem/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def start_app(app_dir, return_to_launcher=True):
354354
def run_launcher():
355355
start_app("/apps/com.example.launcher", False)
356356

357-
execute_script_new_thread("/autostart.py", True, False)
357+
execute_script_new_thread("/autorun.py", True, False)
358358
run_launcher()
359359

360360
# If we got this far without crashing, then no need to rollback the update

0 commit comments

Comments
 (0)