Skip to content

spotify: Amend the procedure for blocking Spotify autoupdates #15486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

prasanthcakewalk
Copy link

@prasanthcakewalk prasanthcakewalk commented May 18, 2025

Closes #15471 (and possibly also #12429).
Relates to #10841 and PR #12737

Change 1: Instead of using "read-only" and "system" files attributes (which Spotify doesn't respect) to block the deletion of the file named Update, the icacls command is used to deny delete permissions to the current user for this file. I've verified that Spotify doesn't delete this file on startup anymore.

Change 2: The Remove-Item commands have been modified to work without pausing for user input, regardless of whether Update is a file or a directory. Also, all the commands related to autoupdate blocking have been set to not print error messages on failure (to avoids issues like #11216)

  • Use conventional PR title: <manifest-name[@version]|chore>: <general summary of the pull request>
  • I have read the Contributing Guide

Copy link
Contributor

All changes look good.

Wait for review from human collaborators.

spotify

  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate

@prasanthcakewalk
Copy link
Author

I'll fix the failing tests within a couple of days!

@prasanthcakewalk
Copy link
Author

/verify

Copy link
Contributor

Your changes do not pass checks.

spotify

  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate

@prasanthcakewalk
Copy link
Author

/verify

Copy link
Contributor

All changes look good.

Wait for review from human collaborators.

spotify

  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Broken logic for blocking spotify auto-updates, with an unintended side effect
1 participant