You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Store app name also for apps started by dir
This commit is contained in:
@@ -381,6 +381,8 @@ def start_app_by_name(app_name, is_launcher=False):
|
||||
|
||||
def start_app(app_dir, is_launcher=False):
|
||||
print(f"/main.py start_app({app_dir},{is_launcher}")
|
||||
global foreground_app_name
|
||||
foreground_app_name = app_dir # would be better to store only the app name...
|
||||
manifest_path = f"{app_dir}/META-INF/MANIFEST.MF"
|
||||
app_name, start_script = parse_manifest(manifest_path)
|
||||
start_script_fullpath = f"{app_dir}/{start_script}"
|
||||
|
||||
Reference in New Issue
Block a user