Last active
April 24, 2018 16:35
-
-
Save clefebvre/c957c3eb290116d07aa524e97743a79e to your computer and use it in GitHub Desktop.
libnm issue in Debian Stretch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import gi | |
gi.require_version('NM', '1.0') | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import NM | |
from gi.repository import Gtk | |
client = NM.Client.new() | |
print(client.get_property("wireless-enabled")) # works | |
print(client.get_property("wireless-hardware-enabled")) # broken in Debian Stretch | |
Gtk.main() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This python script shows the software and hardware state of wireless in NM.
In Debian Stretch, libnm is unable to retrieve the "wireless-hardware-enabled" property.
This issue is fixed upstream by NetworkManager/NetworkManager@b2af5f7.