From 3ab518f09025712a989843641523ca23e3a6eb45 Mon Sep 17 00:00:00 2001 From: Egor Date: Sat, 17 Jan 2026 22:21:59 -0800 Subject: [PATCH] need to wrap windows shell process spawning to avoid warnings on other systems --- src/main/modules/monitoring.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/modules/monitoring.ts b/src/main/modules/monitoring.ts index a56190a..480ddf9 100644 --- a/src/main/modules/monitoring.ts +++ b/src/main/modules/monitoring.ts @@ -70,7 +70,9 @@ export function startMonitoring(window: BrowserWindow) { mainWindow = window; isRunning = true; - powerShellStart(); + if (platform === 'win32') { + powerShellStart(); + } void collectAndSendCpuMetrics(); cpuInterval = setInterval(() => { @@ -105,7 +107,9 @@ export function stopMonitoring() { } isRunning = false; - powerShellRelease(); + if (platform === 'win32') { + powerShellRelease(); + } } function updateTrayWithMetrics() {