friedrith / node-wifi

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

Linux: If specified password is incorrect, user is prompted #34

Open logidelic opened 6 years ago

logidelic commented 6 years ago

Currently testing on Lubuntu 17. Seems to work well!

One thing I have noticed is that if the specified password is incorrect, then the desktop session displays a (standard) prompt to the user for the wifi password. I would hope that I could have full control of the UI (or lack thereof). Any way around this?

friedrith commented 6 years ago

Sorry for the delay. I didn't how about it. I tried on Fedora too and the same thing happened. Quite weird because I didn't activate the option ask:

-a | --ask
           When using this option nmcli will stop and ask for any missing required arguments, so do not use this option for non-interactive purposes like scripts. This option controls, for
           example, whether you will be prompted for a password if it is required for connecting to a network.

Sorry but I don't know yet how to correct it.