0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-05 08:11:16 +00:00
Files
termux-packages/x11-packages/electron-host-tools-for-code-oss/cr-patches/1004-chromium-headless-disable-sandbox-by-default.patch
2025-05-12 15:06:25 +08:00

15 lines
552 B
Diff

--- a/headless/lib/headless_content_main_delegate.cc
+++ b/headless/lib/headless_content_main_delegate.cc
@@ -176,6 +176,11 @@
if (!command_line->HasSwitch(::switches::kHeadless))
command_line->AppendSwitch(::switches::kHeadless);
+#ifdef __TERMUX__
+ // Always pass no sandbox on Termux.
+ command_line->AppendSwitch(sandbox::policy::switches::kNoSandbox);
+#endif
+
// Use software rendering by default, but don't mess with gl and angle
// switches if user is overriding them.
if (!command_line->HasSwitch(::switches::kUseGL) &&