Working around platform limitations on GetConnectionUnixProcessID?

RenĂ© J.V. Bertin <[email protected]> Sat, 19 Apr 2025 17:08:41 +0200
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <2489250.piHssWTA4O@bola>
Hi,

As far as I understand it is impossible to have a working GetConnection=
UnixProcessID request on Darwin (Mac OS). That's rarely a problem but n=
ow I'm running into a case where it is.

Rather than trying to hack the dbus-daemon I wonder if I couldn't simpl=
y add a way to query the server application for its pid directly.?

I haven't ever written anything like this so a few pointers (e.g. to a =
suitable skeleton example) would be really appreciated.

Thanks,
Ren=E9