From 3fa1681bd0527fd8f868825e993e597d0935eddc Mon Sep 17 00:00:00 2001 From: jcfun Date: Fri, 4 Oct 2024 17:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86linux6.1*=E5=86=85?= =?UTF-8?q?=E6=A0=B8=E4=B8=8B=E7=A1=AC=E4=BB=B6=E5=8A=A0=E9=80=9F=E8=A2=AB?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=85=B3=E9=97=AD=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/desktop/main/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop/main/index.ts b/packages/desktop/main/index.ts index 4e7ebb6..7551b3d 100644 --- a/packages/desktop/main/index.ts +++ b/packages/desktop/main/index.ts @@ -6,7 +6,7 @@ import { BrowserWindowConstructorOptions, shell, } from 'electron' -import { release } from 'os' +import { release, type } from 'os' import { join } from 'path' import log from './log' import { initIpcMain, lyricWin } from './ipcMain' @@ -33,7 +33,7 @@ class Main { constructor() { log.info('[index] Main process start') // Disable GPU Acceleration for Windows 7 - if (release().startsWith('6.1')) app.disableHardwareAcceleration() + if (release().startsWith('6.1') && type() == 'Windows_NT') app.disableHardwareAcceleration() // Set application name for Windows 10+ notifications if (process.platform === 'win32') app.setAppUserModelId(app.getName())