mirror of
https://github.com/oobabooga/textgen.git
synced 2026-09-21 05:27:51 -05:00
@@ -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
@@ -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%
|
||||
|
||||
Reference in New Issue
Block a user