Merge pull request #7531 from oobabooga/dev

Merge dev branch
This commit is contained in:
oobabooga
2026-05-03 02:39:50 -03:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -24,10 +24,15 @@ app.setName(TITLE);
// - no-sandbox: chrome-sandbox needs SUID root, which an unzipped tarball can't ship.
// - no-zygote: zygote's mount namespace hides /dev/shm and /tmp from subprocesses,
// producing a blank gray window; disabling restores full filesystem visibility.
// - disable-accelerated-video-decode/encode: skip Chromium's hardware video pipeline,
// which probes VAAPI at startup and logs a noisy version-mismatch error on systems
// with older libva. We don't render video content anyway.
// Safe to disable sandboxing here — we only load our own localhost server.
if (process.platform === "linux") {
app.commandLine.appendSwitch("no-sandbox");
app.commandLine.appendSwitch("no-zygote");
app.commandLine.appendSwitch("disable-accelerated-video-decode");
app.commandLine.appendSwitch("disable-accelerated-video-encode");
}
let serverProcess = null;
+2 -2
View File
@@ -6,8 +6,8 @@ for %%a in (%*) do (
if /i "%%~a"=="--nowebui" goto :server
if /i "%%~a"=="--listen" goto :server
)
start "" "%APP%\electron\electron.exe" "%APP%" -- %*
exit /b 0
"%APP%\electron\electron.exe" "%APP%" -- %*
exit /b %errorlevel%
:help
"%APP%\portable_env\python.exe" "%APP%\server.py" --help
exit /b %errorlevel%