Skip to content

Instantly share code, notes, and snippets.

@clefebvre
Last active April 24, 2018 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clefebvre/c957c3eb290116d07aa524e97743a79e to your computer and use it in GitHub Desktop.
Save clefebvre/c957c3eb290116d07aa524e97743a79e to your computer and use it in GitHub Desktop.
libnm issue in Debian Stretch
#!/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()
@clefebvre
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment