mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
This is the first complex app to use pledge(), and it was extremely easy to get it working. The main trickiness comes from the RPC sockets that get set up inside the GApplication constructor. Since it wants to unlink any old RPC socket with the same filename and change the file mode of the new socket, it needs both "cpath" and "fattr". Once the GApplication has been constructed, it seems we can safely drop those promises. Pretty cool!