friedrith / node-wifi

📶 NodeJS tool to manage wifi (connections, scans)
MIT License
396 stars 160 forks source link

Error when connect on a quasar electron app on mac #100

Closed GhyslainBruno closed 4 years ago

GhyslainBruno commented 4 years ago

Related issue

Description

The connect doesn't work on a mac when developing a quasar electron application. It doesn't work because when quasar launches the electron app (it uses webpack) it doesn't have access to the same PATH, and so, node can't find the networksetup tool.

Motivation and Context

Motivation for this PR is that it won't change anything for "normal" electron users, but make win some useful time for quasar users (as for other frameworks of that kind).

Usage examples

Nothing changes for end the usages of node-wifi library.

How Has This Been Tested?

Need to have an quasar electron app to see that error. Tested as it is asked in test/README.md, using a .env file and running the tests (on a mac machine - Catalina).

Types of changes

friedrith commented 2 years ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.