Skip to content

appkit: run() starts the folder's own home app when it has one - #42

Merged
bdbarnett merged 1 commit into
mainfrom
appkit-run-keeps-home
Nov 8, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
appkit-run-keeps-home

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

appkit.run() with no name scanned the apps folder and then registered appkit.home under the name home, which replaced a scanned apps/home. A board whose apps/ holds this repository's tabbed Home got appkit's plain column of buttons instead. Now run() keeps a scanned home app and falls back to appkit.home only when the folder has none. The appkit README says so in one line.

A new launcher check, run_keeps_a_scanned_home, scans a sample folder that has a home app and one that doesn't: the first keeps apps.home, the second gets appkit.home. With the old rule planted it fails on CPython and on unix MicroPython; with the change all 17 launcher checks pass on both. I also ran appkit.run() on desktop CPython (SDL, dummy video) against this repository's real apps/ folder: before the change the home screen was appkit.home with 22 widgets on screen, after it apps.home.

run() still uses appkit's plain Launcher and Shell, so the tabbed Home started this way has appkit's corner Home button rather than touchkit's header and BOOT button; a board that wants those still builds a TouchLauncher and TouchShell itself. I didn't run it on a board.

Fixes #38

appkit.run() with no name scanned the apps folder and then registered
appkit.home under the name home, replacing a scanned apps/home. A board
whose apps folder holds the tabbed Home got appkit's plain column of
buttons. run() now registers appkit.home only when the folder has no home.

A new launcher check scans a sample folder with a home app and one without:
the first keeps apps.home, the second gets appkit.home. With the old rule
planted it fails on CPython and unix MicroPython; with this change all 17
checks pass on both.
@bdbarnett
bdbarnett merged commit 8008b3d into main Nov 8, 2026
6 checks passed
@bdbarnett
bdbarnett deleted the appkit-run-keeps-home branch November 8, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

appkit.run() replaces a scanned apps/home with appkit's own button list

1 participant