mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-15 19:22:31 +08:00
miscellaneous
This commit is contained in:
parent
ac734ecf71
commit
e68c4e134d
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user