Skip to content

Commit 61c0e80

Browse files
committed
electron-22.3.10: fix bug
1 parent 1b3b87c commit 61c0e80

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
--- a/electron/shell/app/electron_main_delegate.cc
22
+++ b/electron/shell/app/electron_main_delegate.cc
3-
@@ -262,7 +262,9 @@
3+
@@ -256,8 +256,13 @@
44
if (env->HasVar(kElectronEnableStackDumping))
55
base::debug::EnableInProcessStackDumping();
66

77
+#ifndef __TERMUX__
88
if (env->HasVar(kElectronDisableSandbox))
9-
+#endif
109
command_line->AppendSwitch(sandbox::policy::switches::kNoSandbox);
10+
+#else
11+
+ command_line->AppendSwitch(sandbox::policy::switches::kNoSandbox);
12+
+ command_line->AppendSwitch(sandbox::policy::switches::kDisableSeccompFilterSandbox);
13+
+#endif
1114

1215
tracing_sampler_profiler_ =
16+
tracing::TracingSamplerProfiler::CreateOnMainThread();

tur-electron/electron-22.3.10/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="MIT, BSD 3-Clause"
44
TERMUX_PKG_MAINTAINER="Chongyun Lee <[email protected]>"
55
_CHROMIUM_VERSION=108.0.5359.215
66
TERMUX_PKG_VERSION=22.3.10
7+
TERMUX_PKG_REVISION=1
78
TERMUX_PKG_SRCURL=git+https://github.com/electron/electron
89
TERMUX_PKG_DEPENDS="electron-deps"
910
TERMUX_PKG_BUILD_DEPENDS="libnotify, libffi-static"

0 commit comments

Comments
 (0)