Open DavideCanton opened 11 months ago
The current workaround would be to either block the current user from writing to the Updates directory and/or blocking the update urls in the hosts file. Adding an optional script to block the updater might look like this (I had ChatGPT whip it up for me):
# Define the hosts file path
$hostsFilePath = "C:\Windows\System32\drivers\etc\hosts"
$entriesToAdd = @(
"127.0.0.1 upgrade.spotify.com",
"127.0.0.1 www.spotify-desktop.com",
"127.0.0.1 sto3-accesspoint-a88.sto3.spotify.net",
"127.0.0.1 upgrade.scdn.co",
"127.0.0.1 beta.spotify.map.fastly.net",
"127.0.0.1 prod.spotify.map.fastlylb.net"
)
# Check if the hosts file exists
if (Test-Path $hostsFilePath) {
try {
# Open the hosts file for writing (append mode)
$hostsFile = [System.IO.File]::AppendAllText($hostsFilePath, [Environment]::NewLine)
# Add entries to the hosts file
foreach ($entry in $entriesToAdd) {
$hostsFile = [System.IO.File]::AppendAllText($hostsFilePath, "$entry`r`n")
}
Write-Host "Entries added to the hosts file successfully."
}
catch {
Write-Host "Error: $($_.Exception.Message)"
}
}
else {
Write-Host "Error: Hosts file not found at $hostsFilePath."
}
=> The community workaround stopped working IMHO and adding entries to the hosts file should not be done automatically.
But maybe a installer note would be nice until theres a better way.
In the meantime: Just run scoop update -f spotify
once in a while
Prerequisites
Package Name
Spotify
Expected/Current Behaviour
Starting spotify when it has downloaded an update hangs forever. The only way to fix it is to remove the Update folder from AppData/Local/Spotify. This persists until the updated package is published on scoop.
Steps to Reproduce
Possible Solution
No clue, sorry.
Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response