On 03/12/2025 10:19, Patrick Cardona wrote:
I attached the code adapted from 'tests-examples': which is my second attempt, 
not the same code I provided previously.

It took me a couple of hours to spot what was wrong here.  Mostly because I was looking for some complicated bug in gui/base, and it was actually something extremely simple that I failed to spoit on my initial look through.

The service specification in the plist file does not match the source code:

In openURLInfo.plsit you wrote 'NSPortName = openURL;'

But in service.m the code to register the service is 'NSRegisterServicesProvider(server, @"openURLService");'

So when your app finds the service configuration, it initially tries to contact port openURL.

There is nothing running on that port, so it tries to launch the service executable, and waits for it to register.

The executable registers on port openURLService

The application again tries (repeatedly) to contact port openURL (which still doesn't exist) until it times out and presents an error mesage to you.


All you need to do to get this working is use the same port name in both places, make install,  run make_services, and try again.




Reply via email to