Skip to content

Fix previously installed apps not launching when using mpremote mount#300

Open
b0xcat wants to merge 2 commits into
mainfrom
b0xcat/mpremote-mount-app-launch-fix
Open

Fix previously installed apps not launching when using mpremote mount#300
b0xcat wants to merge 2 commits into
mainfrom
b0xcat/mpremote-mount-app-launch-fix

Conversation

@b0xcat

@b0xcat b0xcat commented May 13, 2026

Copy link
Copy Markdown
Contributor

Description

This PR fixes a small issue launching apps that were previously already installed when using mpremote mount.

mpremote mount under the hood does os.chdir('/remote') which causes apps previously installed to /apps to fail when we try to import them. This provides a fallback that temporarily switches back to the old cwd, imports the app, and restores the /remote cwd after.

@MatthewWilkes

Copy link
Copy Markdown
Member

@b0xcat Won't lots of things be broken if /remote is in place? You're right about the apps, but also the hexpansion mountpoints and the settings will all be unavailable.

What are we trying to do with mount? It looks like it's designed to take over the entire FS, so wouldn't we want it to reinitialise the menu to only have the mounted apps?

@b0xcat

b0xcat commented May 17, 2026

Copy link
Copy Markdown
Contributor Author

Hmm good point, maybe that's a better way of doing it. I just kind of quickly did this because I ran into this specific issue playing around. Will take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants