Last active
May 18, 2022 06:05
-
-
Save AllanLRH/1a5f61362081a488fac1 to your computer and use it in GitHub Desktop.
Disable Spotify autoupdate on Mac OS X (testet on Yosemite).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script prevents Spotifys Autoupdating on OS X (testet on Yosemite) | |
# Based on this tutorial: | |
# http://supraliminal.net/blog/2013/4/21/how-to-revert-back-to-the-older-better-spotify-client | |
# | |
# This script must be run as root: | |
# sudo sh doNotUpdateSpotify.sh | |
# | |
FILE="/tmp/out.$$" | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" | |
echo "-------------------------------------------" | |
echo "This is what you should type into terminal:" | |
echo "sudo sh doNotUpdateSpotify.sh" | |
exit 1 | |
fi | |
filepath1="/Users/$SUDO_USER/Library/Application Support/Spotify/Spotify_new.archive" | |
filepath2="/Users/$SUDO_USER/Library/Application Support/Spotify/Spotify_new.archive.sig" | |
[[ -f "$filepath1" ]] && rm -f "$filepath1" | |
[[ -f "$filepath2" ]] && rm -f "$filepath2" | |
touch "$filepath1" | |
touch "$filepath2" | |
chflags uchg "$filepath1" # Lock file in which the downloaded update is stored, thus preventing an update | |
chflags uchg "$filepath2" | |
echo "---------------------------------------" | |
echo "| Spotify will no longer be updated |" | |
echo "---------------------------------------" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FWIW, following strategy works as of today - https://gist.github.com/aleksandrs-ledovskis/0b149b996c7a1ebc16126c60a79433ec