Fixed the Notification errors

This commit is contained in:
2026-03-30 12:02:40 -07:00
parent 9e9804b1b1
commit 41fc743026
3 changed files with 38 additions and 36 deletions

View File

@@ -241,16 +241,7 @@ Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] Replay Buffer confi
# --- Notify user that the replay buffer is active ---
$notifyScript = Join-Path $PSScriptRoot 'Show-Notification.ps1'
$bufferMinutes = [math]::Round($config.BufferSeconds / 60)
Start-Process -FilePath 'powershell.exe' -ArgumentList @(
'-STA'
'-ExecutionPolicy', 'Bypass'
'-NonInteractive'
'-WindowStyle', 'Hidden'
'-File', $notifyScript
'-Type', 'BufferStarted'
'-ContactNumber', $config.ITContactNumber
'-BufferMinutes', $bufferMinutes
) -WindowStyle Hidden
Start-Process -FilePath 'powershell.exe' -ArgumentList "-STA -ExecutionPolicy Bypass -NonInteractive -WindowStyle Hidden -File `"$notifyScript`" -Type BufferStarted -ContactNumber `"$($config.ITContactNumber)`" -BufferMinutes $bufferMinutes" -WindowStyle Hidden
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] User notification launched."
# --- Launch tray icon as a separate background process ---