Re: org.freedesktop.NetworkManager.Settings.PropertiesChanged deprecated



On Mittwoch, 14. Juli 2021 21:37:43 CEST Andrei Borzenkov via networkmanager-
list wrote:
import dbus, sys, uuid
from dbus.mainloop.glib import DBusGMainLoop
from gi.repository import GLib

DBusGMainLoop(set_as_default=True)

loop = GLib.MainLoop()

def properties_changed(interface_name, changed_properties,
invalidated_properties):
    print (interface_name, changed_properties, invalidated_properties)


bus = dbus.SystemBus()
obj = bus.get_object("org.freedesktop.NetworkManager",
"/org/freedesktop/NetworkManager")
iface = dbus.Interface(obj, "org.freedesktop.DBus.Properties")
iface.connect_to_signal("PropertiesChanged", properties_changed)

loop.run()

Yep, this one runs without an error and catches the signal appropriatly.

Now the question is, what I am doing wrong in perl 8-/

Thx!

Bye.
Michael.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]