I’m trying to write a notification script using python-dbus.
How can I get properties from a dbus.Struct object?
For example if I print it out as string, it is
dbus.Struct((dbus.String(u’msg_subject:Re: email subject’),), signature=None)
I need to get the inner string.
I’m trying to write a notification script using python-dbus. How can I get properties
Share
Looks like
dbus.Structinherits from tuple, so you should be able to do this: