v1.8.0 #429

Merged
LukeGus merged 198 commits from dev-1.8.0 into main 2025-11-05 16:36:16 +00:00
2 changed files with 17 additions and 4 deletions
Showing only changes of commit cd3b4f9864 - Show all commits

View File

@@ -51,7 +51,6 @@
}, },
"linux": { "linux": {
"artifactName": "termix_linux_${arch}_portable.${ext}", "artifactName": "termix_linux_${arch}_portable.${ext}",
"executableArgs": ["--no-sandbox"],
"target": [ "target": [
{ {
"target": "AppImage", "target": "AppImage",

View File

@@ -10,16 +10,30 @@ const path = require("path");
const fs = require("fs"); const fs = require("fs");
const os = require("os"); const os = require("os");
app.disableHardwareAcceleration(); // Only disable hardware acceleration if explicitly requested or on older systems
app.commandLine.appendSwitch("--no-sandbox"); if (process.env.DISABLE_GPU === "1") {
app.disableHardwareAcceleration();
}
app.commandLine.appendSwitch("--ignore-certificate-errors"); app.commandLine.appendSwitch("--ignore-certificate-errors");
app.commandLine.appendSwitch("--ignore-ssl-errors"); app.commandLine.appendSwitch("--ignore-ssl-errors");
app.commandLine.appendSwitch("--ignore-certificate-errors-spki-list"); app.commandLine.appendSwitch("--ignore-certificate-errors-spki-list");
app.commandLine.appendSwitch("--enable-features=NetworkService"); app.commandLine.appendSwitch("--enable-features=NetworkService");
if (process.platform === "linux") { if (process.platform === "linux") {
app.commandLine.appendSwitch("--disable-setuid-sandbox"); // Use GPU acceleration on Linux
app.commandLine.appendSwitch("--enable-features", "VaapiVideoDecoder");
app.commandLine.appendSwitch("--disable-dev-shm-usage"); app.commandLine.appendSwitch("--disable-dev-shm-usage");
// Only disable sandboxing if running in problematic environments
// Check if we're in an AppImage or if CHROME_DEVEL_SANDBOX is not set properly
const isAppImage = process.env.APPIMAGE != null;
const hasProperSandbox = process.env.CHROME_DEVEL_SANDBOX != null;
if (isAppImage && !hasProperSandbox) {
// AppImage environments often have sandbox issues
app.commandLine.appendSwitch("--no-sandbox");
}
} }
let mainWindow = null; let mainWindow = null;