nm_active_connection_get_master returns NULL
I am trying to access the master device of the primary connection, by doing this (with pygobject):
import gi from gi.repository import NM client = NM.Client.new() primary = client.get_primary_connection() dev = primary.get_master()
dev will always be NULL. I have tested this on Fedora 32 and on Arch Linux, with NM 1.26.2-1.
This isn't an issue with pygobject, I've tested it with lua lgi and the same thing happens.
If I am doing this wrong, is there another way I should access the device of the current primary connection?