From 0ca931d0d66151443f87b5b70cb7334b2bdd69f7 Mon Sep 17 00:00:00 2001 From: Abubakr Fazilov Date: Sun, 17 May 2026 08:52:50 +0300 Subject: [PATCH] fix: prevent disabling GPU on the latest Linux kernels (#257) Add win32 platform check to prevent disabling GPU on Linux kernels that starts with 6.1 (e. g. 6.1, 6.19 etc.) --- electron/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index cb29401..a820883 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -29,7 +29,7 @@ process.env.VITE_PUBLIC = VITE_DEV_SERVER_URL : RENDERER_DIST // Disable GPU Acceleration for Windows 7 -if (os.release().startsWith('6.1')) app.disableHardwareAcceleration() +if (process.platform === 'win32' && os.release().startsWith('6.1')) app.disableHardwareAcceleration() // Set application name for Windows 10+ notifications if (process.platform === 'win32') app.setAppUserModelId(app.getName())