fix: attempt to fix snap once more #5252

This commit is contained in:
Johannes Millan 2025-10-12 11:21:40 +02:00
parent f6f74da056
commit ac8ebf93cf
2 changed files with 17 additions and 0 deletions

View file

@ -65,6 +65,10 @@ export const startApp = (): void => {
);
log('Snap: Launch with --enable-gpu to attempt hardware rendering (may crash)');
app.disableHardwareAcceleration();
// Additional command-line switches to ensure snap compatibility
app.commandLine.appendSwitch('disable-gpu');
app.commandLine.appendSwitch('disable-gpu-sandbox');
}
// Initialize protocol handling