juliangruber / juliangruber/osx-find-executable
Executables can't be found if spotlight is disabled
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
My application uses this module, and it doesn't work for one user (see https://github.com/httptoolkit/feedback/issues/21), because they've disabled spotlight, so `mdfind` searches return:
```
mdfind[30268:56473] Metadata.framework [Error]: couldn't get the client port
```
I think you could work around this, by falling back to searching the Applications folder manually instead (potentially printing a warning so users know why it might be slow). What do you think?
Thanks for the module btw, it's been really useful!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting the module's executable lookup entry point and reproducing the failing mdfind behavior when Spotlight is disabled. Check how applications are located, then verify that the fallback can find an executable in the Applications folder and that any warning is appropriate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100