(In reply to Gian-Carlo Pascutto [:gcp] from comment #1) > Mesa seems to check some env variables before doing that, so maybe something like https://searchfox.org/mozilla-central/rev/02bd3e02b72d431f2c600a7328697a521f87d9b6/ipc/glue/GeckoChildProcessHost.cpp#1122 is the cleanest fix. Specifically, [this is where we set up the “content temp dir”][content-temp], which is later used to set `MESA_GLSL_CACHE_DIR` (in the link above). We'll also need [this sandbox rule] factored out along with the other known Mesa dependencies. [content-temp]: https://searchfox.org/mozilla-central/rev/7fb9750a14e99267a77328559c2fd022e360d99b/ipc/glue/GeckoChildProcessHost.cpp#411 [sbx-rule]: https://searchfox.org/mozilla-central/rev/7fb9750a14e99267a77328559c2fd022e360d99b/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp#601-611
Bug 1751709 Comment 2 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to Gian-Carlo Pascutto [:gcp] from comment #1) > Mesa seems to check some env variables before doing that, so maybe something like https://searchfox.org/mozilla-central/rev/02bd3e02b72d431f2c600a7328697a521f87d9b6/ipc/glue/GeckoChildProcessHost.cpp#1122 is the cleanest fix. Specifically, [this is where we set up the “content temp dir”][content-temp], which is later used to set `MESA_GLSL_CACHE_DIR` (in the link above). We'll also need [this sandbox rule][sbx-rule] factored out along with the other known Mesa dependencies. [content-temp]: https://searchfox.org/mozilla-central/rev/7fb9750a14e99267a77328559c2fd022e360d99b/ipc/glue/GeckoChildProcessHost.cpp#411 [sbx-rule]: https://searchfox.org/mozilla-central/rev/7fb9750a14e99267a77328559c2fd022e360d99b/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp#601-611