fix(linux): harden account-switch relaunch against GPU process crashes
This commit is contained in:
1 parent
3100db93ed
commit
2c1755e578
2 files changed
+100
-19
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user