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);