mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
build: fix mac build 2
This commit is contained in:
parent
a8ade7f476
commit
31c6b40fc8
1 changed files with 2 additions and 2 deletions
|
|
@ -125,9 +125,9 @@ export const startApp = (): void => {
|
|||
const isSnap = process.platform === 'linux' && !!process.env.SNAP;
|
||||
const isForceGpu = process.argv.some((val) => val.includes('--enable-gpu'));
|
||||
if (isSnap) {
|
||||
app.on('gpu-process-crashed', () => {
|
||||
(app as any).on('gpu-process-crashed', (_event: any, killed: boolean) => {
|
||||
if (!app.commandLine.hasSwitch('disable-gpu')) {
|
||||
log('Snap: GPU process crashed, disabling GPU and relaunching');
|
||||
log('Snap: GPU process crashed, disabling GPU and relaunching', { killed });
|
||||
app.commandLine.appendSwitch('disable-gpu');
|
||||
app.relaunch();
|
||||
app.exit(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue