From e68c4e134daf855ff69942e17a3543faea9012f3 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Wed, 2 Oct 2024 16:34:54 +0800 Subject: [PATCH] miscellaneous --- src/main/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 186bd86..655cd8a 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -14,7 +14,7 @@ import { execSync, spawn } from 'child_process' import { createElevateTask } from './sys/misc' import { initProfileUpdater } from './core/profileUpdater' import { existsSync, writeFileSync } from 'fs' -import { taskDir } from './utils/dirs' +import { exePath, taskDir } from './utils/dirs' import path from 'path' import { startMonitor } from './resolve/trafficMonitor' @@ -67,7 +67,7 @@ if (process.platform === 'linux') { app.relaunch = customRelaunch } -if (process.platform === 'win32') { +if (process.platform === 'win32' && !exePath().startsWith('C')) { // https://github.com/electron/electron/issues/43278 // https://github.com/electron/electron/issues/36698 app.commandLine.appendSwitch('in-process-gpu')