Fix the restart button

From: Baptiste Daroussin <>
Date: Thu, 16 Jun 2022 07:29:52 UTC

I have stolen this patch from OpenBSD, which was done to please pledge, but in
the end fixes the restart button.

If my investigation is right, firefox when one click on the restart button (in
case of upgrade) will call for the sysctl KERN_PROC_PATHNAME, which will return
en empty value, because the binary has been unlinked and replace by the new one.
(the behaviour is different on linux here) but forcing the path at buildtime
make it work reliably and at least here, it makes the restart button working

note that it needs a post-patch target to replace %%PREFIX%% in
xpcom/build/BinaryPath.h file.

Best regards,