fix(linux): harden account-switch relaunch against GPU process crashes

This commit is contained in:
Draculabo committed 2026-04-11 18:03:30 +08:00
1 parent 3100db93ed
commit 2c1755e578
2 files changed
+100 -19

No files matched your search

+6
View File
@@ -52,6 +52,12 @@ ipcMain.on(IPC_CHANNELS.CHANGE_LANGUAGE, (event, lang) => {
app.disableHardwareAcceleration();
if (process.platform === 'linux') {
app.commandLine.appendSwitch('disable-gpu');
app.commandLine.appendSwitch('disable-gpu-compositing');
logger.info('Applied Linux GPU-safe Chromium switches for Antigravity Manager startup');
}
if (squirrelStartup) {
app.quit();
process.exit(0);