Fix bug with config check script for native-messaging
#578
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The setup instructions for
native-messaging
are specific topython3
. Likewise,ping_pong_win.bat
has the commandcall python3
.webextensions-examples/native-messaging/app/ping_pong_win.bat
Line 3 in 2ecc219
There is a script to ensure you've got everything configured correctly,
check_config_win.py
. However, in this check script we're checking for the string literal"call python "
within the.bat
file, which will always evaluate to false due to the trailing space. Due to this, a person could be in a state where everything is actually configured correctly, but the check script incorrectly responds with an error.This PR changes
"call python " to
"call python3"` in order to align the check script with the setup instructions.Motivation
I was trying to get the native messaging example set up on my PC but ran into some confusion when the check script was giving me false negatives