📅  最后修改于: 2022-03-11 14:45:41.073000             🧑  作者: Mango
>>> NetworkManager.NetworkManager.Version
'1.4.4'
>>> NetworkManager.NetworkManager.GetPermissions()
{'org.freedesktop.NetworkManager.checkpoint-rollback': 'auth',
'org.freedesktop.NetworkManager.enable-disable-network': 'yes',
...}
# Must have a mainloop to use signals
>>> import dbus.mainloop.glib
>>> dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
>>> NetworkManager.Networkmanager.OnStateChanged(handle_state_change)