-
Notifications
You must be signed in to change notification settings - Fork 189
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
Check default paths first when running on Mac #209
Check default paths first when running on Mac #209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks very much @christian-bromann! 🎉
@patrickhulce addressed comments |
@patrickhulce thanks for the feedback. I moved the logic into the Chrome finder. Looks much better now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @christian-bromann!
Running the lsregister dump can take up to a couple seconds on MacOS. This patch ensures that we check for default paths first and only do the dump if the browser is not located in
/Applications/Google Chrome.app
or/Applications/Google Chrome Canary.app
.Note: I couldn't really test all execution paths for the new method as I am not able to stub the
fs
package entirely (as you could do it with jest for example).fixes: #207