From 48c475ee9a6711dfa512d7494e1eb6d2dfeca939 Mon Sep 17 00:00:00 2001 From: Julien <182520+JulienMaille@users.noreply.github.com> Date: Mon, 13 Dec 2021 16:43:50 +0100 Subject: [PATCH] FIX #142 thank you @alixti --- patch-dark-mode.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/patch-dark-mode.ps1 b/patch-dark-mode.ps1 index 376726e..66c3a4b 100644 --- a/patch-dark-mode.ps1 +++ b/patch-dark-mode.ps1 @@ -1,3 +1,6 @@ +Get-Process -Name Spotify -ErrorAction SilentlyContinue | Stop-Process -Force +Get-Process -Name SpotifyWebHelper -ErrorAction SilentlyContinue | Stop-Process -Force + $sp = "$env:APPDATA\Spotify\Spotify.exe" Copy-Item $sp ($sp + ".backup") @@ -21,4 +24,4 @@ for ($i = 0; $i -lt $bytes.Length; $i++) { } } -[System.IO.File]::WriteAllBytes($sp, $bytes); \ No newline at end of file +[System.IO.File]::WriteAllBytes($sp, $bytes);