Re: Working around platform limitations on GetConnectionUnixProcessID?

RenĂ© J.V. Bertin <[email protected]> Sun, 20 Apr 2025 02:02:11 +0200
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <26872260.SnhqojuvZa@bola>
On Sunday April 20 2025 11:00:52 Lawrence D'Oliveiro wrote:

>Are you *trusting* the other end to return correct information about
>itself? Because the whole point of SO_PEERCRED is that the information
>comes from the kernel, so it is not possible for the other end to fake
>it.

In this case yes, because I'm writing it myself. 

The underlying purpose is a fun experiment of the "can I" kind - get the xdg-desktop-portal and the KDE "backend" for it working well enough to have KDE file dialogs in my GTk applications. And I looks like I can now, or almost ;)