Skip to content
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

Update native-messaging to use python3, clarify instructions #564

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dotproto
Copy link
Contributor

@dotproto dotproto commented Jul 13, 2024

Description

The following updates were made to the native-messaging example.

  • Change the shebang in app/ping_pong.py explicitly use Python 3 instead of Python 2
  • Change the app/ping_pong_win.bat runner to use Python 3 (untested)
  • Updated the README
    • with more details on how to set up Python 3
    • explicitly tell the user to update files in app/ with the full paths of the files they reference
    • remove the Python 2 in the README as support for Python 2 ended in 2020
  • Added a port.onDisconnect listener to add-on/background.js

Motivation

Update the example to function as expected.

Additional details

N/A

Related issues and pull requests

Fixes #560

Copy link

It looks like this is your first pull request. 🎉 Thank you for your contribution! One of the project maintainers will triage and assign the pull request for review. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.

@dotproto
Copy link
Contributor Author

@rebloor, at your suggestion I took a look at the native-messaging example and also wasn't able to get it to run locally on my test device using the instructions provided. Please take a look at the updated instructions and revise as appropriate.

@rebloor
Copy link
Collaborator

rebloor commented Jul 13, 2024

Thanks @dotproto I'll take a look first thing next week

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.

native messaging example: port disconnects without an error
2 participants