Skip to content

Instantly share code, notes, and snippets.

@aleksandrs-ledovskis
Last active August 16, 2024 09:52
Show Gist options
  • Save aleksandrs-ledovskis/0b149b996c7a1ebc16126c60a79433ec to your computer and use it in GitHub Desktop.
Save aleksandrs-ledovskis/0b149b996c7a1ebc16126c60a79433ec to your computer and use it in GitHub Desktop.
Lock Spotify version (macOS)
  1. Create new Automator application with Run Shell script action (exact steps below).

    1. Open Automator.app (e.g. from Spotlight)
    2. Select File → New in menu
    3. Select "Application", click "Choose"
    4. With "Actions" toggle selected, type "Run Shell Script" in filter box, double click on filtered item
  2. Put contents from lock_spotify_version.sh into script's body (exact steps below).

    1. In opened right-hand item select /bin/sh as "Shell" type and copy contents of Gist's "lock_spotify_version.sh" below/in text area
    2. Select File → Save in menu; Save as application name of your choice (e.g. "Lock Spotify.app")
  3. Add resulting application to user's "Login Items"

  4. Restart computer

  5. Install Spotify version of choice


N.B. The Automator-built application should not be run manually. Its task is to run as early as possible and squat the folder name that Spotify uses for updates. If Spotify is unable to access said hardcoded path, it skips update

#!/bin/sh
mkdir -p $TMPDIR/sp_update && chmod 000 $TMPDIR/sp_update
@Cetartiodactyla
Copy link

Someone got an update on this? Seems not to work anymore.

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