Skip to content

fix(app-launcher): descend into macOS app subdirectories - #29

Merged
Mechazawa merged 1 commit into
masterfrom
fix/app-launcher-subdirs
May 28, 2026
Merged

fix(app-launcher): descend into macOS app subdirectories#29
Mechazawa merged 1 commit into
masterfrom
fix/app-launcher-subdirs

Conversation

@Mechazawa

Copy link
Copy Markdown
Owner

Summary

  • collectMacApps did a flat readDir, so apps living under grouping folders were silently missing from the index — e.g. /System/Applications/Utilities/Activity Monitor.app, /System/Library/CoreServices/Applications/Keychain Access.app, anything under /Applications/Setapp/, etc.
  • Replaced the flat loop with a depth-limited recursive walk (MAC_MAX_DEPTH = 2) that descends into non-.app subdirectories but stops before walking into .app bundle internals (which would expose thousands of files).
  • Bumped app-launcher plugin from 0.1.00.1.1 (in both manifest.json and package.json).

Test plan

  • npx vitest run in plugins/app-launcher/ — 11 passing (10 existing + 1 new test asserting /System/Applications/Utilities/Activity Monitor.app is found).
  • Manually verify in a built app that Activity Monitor / Keychain Access show up when searched.

🤖 Generated with Claude Code

The plugin's collectMacApps did a non-recursive readDir, so apps under
grouping folders like /System/Applications/Utilities/ (Activity Monitor,
Terminal in some layouts) or /System/Library/CoreServices/Applications/
(Keychain Access) were never indexed. Switch to a depth-limited walk
(MAC_MAX_DEPTH=2) that skips into non-.app dirs but stops before
descending into .app bundle internals.

Bumps app-launcher to 0.1.1.
@Mechazawa
Mechazawa merged commit 29daac5 into master May 28, 2026
14 checks passed
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.

1 participant