canonical / nm.dart

Native Dart client library to access NetworkManager on Linux.
https://pub.dev/packages/nm
Mozilla Public License 2.0
29 stars 11 forks source link

DeviceStateReason only provides unknown state #53

Closed Taha-Firoz closed 2 years ago

Taha-Firoz commented 2 years ago

NetworkManagerDevice.stateReason only returns NetworkManagerDeviceState.unknown and NetworkManagerDeviceStateReason.unknown while NetworkManagerDevice.state returns appropriate states however it's not granular enough.

Any workarounds for now? I need to check if someone entered an invalid password when attempting to connect to a wireless network and NetworkManagerDevice.state never changes to the need_auth state even though journalctl shows that network manager changes to that state.

Taha-Firoz commented 2 years ago

Thank you