Skip to content

Instantly share code, notes, and snippets.

@musaubrian
Last active February 14, 2023 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save musaubrian/4fe4cd5fdb01bd654a7141a967332408 to your computer and use it in GitHub Desktop.
Save musaubrian/4fe4cd5fdb01bd654a7141a967332408 to your computer and use it in GitHub Desktop.
bash script to install spotify adblocker by [github.com/abba23]
#!/usr/bin/env bash
# this script makes use of flatpak, ensure that is installed
# Or to not use flatpacks, check out the instructions from the repo just below
git clone https://github.com/abba23/spotify-adblock.git
cd spotify-adblock
make
sudo make install
mkdir -p ~/.spotify-adblock && cp target/release/libspotifyadblock.so ~/.spotify-adblock/spotify-adblock.so
mkdir -p ~/.config/spotify-adblock && cp config.toml ~/.config/spotify-adblock
flatpak override --user --filesystem="~/.spotify-adblock/spotify-adblock.so" --filesystem="~/.config/spotify-adblock/config.toml" com.spotify.Client
#!/usr/bin/env bash
# Launch the programm
flatpak run --command=sh com.spotify.Client -c 'eval "$(sed s#LD_PRELOAD=#LD_PRELOAD=$HOME/.spotify-adblock/spotify-adblock.so:#g /app/bin/spotify)"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment