Skip to content

How to install spotify adblock

Posted on:June 5, 2023 at 02:24 PM

Table of contents

Open Table of contents

INSTALL

BUILDING PACKAGES

Before installation of package

sudo apt-get install build-essential fakeroot devscripts

RUST

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

official doc

Spotify client

IF YOU DON’T HAVE || INSTALL SPOTIFY CLIENT WITH THIS COMMANDS
You will first need to configure our debian repository:

curl -sS https://download.spotify.com/debian/pubkey_7A3A762FAFD4A51F.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

Then, you can install the Spotify client:

sudo apt-get update && sudo apt-get install spotify-client

official doc

spotify-adblock

More details on this spotify-adblock

git clone https://github.com/abba23/spotify-adblock.git
cd spotify-adblock
make

INSTALL

sudo make install

desktop icon

wget

You can integrate it with your desktop environment (create desktop icon.)

wget "https://raw.githubusercontent.com/sudiplun/.desktop/main/SpotifyAdblock.desktop" -P ~/.local/share/applications

Manual

creating a .desktop file (e.g. spotifyadblock.desktop) in ~/.local/share/applications.

[Desktop Entry]
Type=Application
Name=Spotify (adblock)
GenericName=Music Player
Icon=spotify-client
TryExec=spotify
Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify