In the process of digging around, it seems like if I install a signal handler in my python script for the 'newSolution' event of the '/KStars/Ekos/Align' object of the DBUS 'org.kde.kstars ' connection, then the arguments passed with that signal should have what I was looking for.
Unfortunately, with all the deprecations to dbus-python and with my limited knowledge of python, I don't seem to be doing it correctly.
For experimentation purposes, I am using this catch-all signal handler"
def signal_handler(*args, **kwargs):
global results
for i, arg in enumerate(args):
print("arg:%d %s" % (i, str(arg)))
print('kwargs:')
print(kwargs)
print('---end----')
and trying to register it via:
bus = dbus.SessionBus()
bus.add_signal_receiver(signal_handler,
signal_name='newSolution',
bus_name='org.kde.kstars',
dbus_interface='org.kde.kstars.Ekos.Align',
path='/KStars/Ekos/Align',
interface_keyword='interface',
member_keyword='member',
path_keyword='path',
message_keyword='msg')
Either I am not registering the handler properly or I need to get an additional thread involved. It just isn't clear to me how to do that.
Any help is appreciated.