New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No interception options available on OSX if spotlight is disabled #21

Open
fabiocaccamo opened this Issue Feb 4, 2019 · 6 comments

Comments

Projects
None yet
2 participants
@fabiocaccamo
Copy link

fabiocaccamo commented Feb 4, 2019

I'm using Mac OS X El Capitan 10.11.6 and this is the scenario on app ready:

schermata 2019-02-04 alle 10 17 13

It doesn't see any browser.

@pimterry pimterry changed the title Doesn't work. No interception options available on OSX Feb 4, 2019

@pimterry

This comment has been minimized.

Copy link
Member

pimterry commented Feb 4, 2019

Interesting! Thanks for letting me know. The way we find applications to run on OSX is by using mdfind to search for bundle ids. Do you have mdfind available on your machine?

As an example, we find the path to the built in Apple Terminal using:

mdfind kMDItemCFBundleIdentifier=="com.apple.Terminal"

If you run that on your machine, what does it return?

@fabiocaccamo

This comment has been minimized.

Copy link
Author

fabiocaccamo commented Feb 4, 2019

Thank you for the quick answer.
This is the output of mdfind kMDItemCFBundleIdentifier=="com.apple.Terminal" on my machine:

mdfind[30268:56473] Metadata.framework [Error]: couldn't get the client port

@pimterry

This comment has been minimized.

Copy link
Member

pimterry commented Feb 4, 2019

It seems that this is because spotlight has been disabled, does that sound plausible? I think Homebrew/legacy-homebrew#27931 is the same issue, and there's some solutions there. Can you try those, and let me know if that works for you?

I'd like to find a way to do this without depending on spotlight, as I'm sure you're not the only one who's turned it off, but I do need to be able to find applications by bundle id. I'll look into it and see what I can come up with.

@fabiocaccamo

This comment has been minimized.

Copy link
Author

fabiocaccamo commented Feb 4, 2019

@pimterry that's correct, I disabled it for performance reasons.
If you find an alternative way to do it it would be great... or just display an error message into the application.

@pimterry pimterry changed the title No interception options available on OSX No interception options available on OSX if spotlight is disabled Feb 4, 2019

@pimterry

This comment has been minimized.

Copy link
Member

pimterry commented Feb 4, 2019

Ok, I'll see what I can do. I can show an error fairly easily, but I suspect most users who've turned this off themselves won't want to turn it back on, so it's not that helpful. In theory it's possible to fall back to manually searching the Application folder myself on demand, it's just more complicated and potentially slower.

I think you can configure which directories Spotlight indexes. You should be able to run it without any performance issues by disabling every directory (especially any that change frequently), except for Applications, and that might work for you as a workaround.

If not HTTP Toolkit is still usable, it just can't start applications for you automatically. You'll be able to intercept and see traffic for any sources that you manually configure to use it as an HTTP proxy (the details are in the 'Anything' option).

@fabiocaccamo

This comment has been minimized.

Copy link
Author

fabiocaccamo commented Feb 4, 2019

Maybe I can configure Spotlight, but it is not my intention.

When I used the searchbox the first time I thought it was an autocomplete searchbox for my installed apps, maybe this could be a god solution.

@pimterry pimterry added the bug label Feb 4, 2019

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