How can I install this adblocker for Spotify?

Hi friends,

I installed Spotify from the AUR, and unfortunately the ad blockers on the AUR are not so reliable. There is an ad blocker I use for my macOS client that works great, and I just noticed they also have it for Linux. When I go to the GitHub page and try the installation command, it doesn’t work. Something about a zip file missing. Excuse my ignorance, as I am still fairly new to Linux and am I wondering if anyone can help me figure out how I can apply this ad blocker to the AUR Spotify. Thanks!

If you use the flatpak version you can follow instruction here: https://github.com/SpotX-CLI/SpotX-Linux#flatpak-version

How about:

sudo pacman -S zip

I am hoping to stick to the AUR spotify

A good start for anyone able to help would be to have more info. Like the full terminal output from the command you have run.

2 Likes

I’ll try again:

1 Like

Okay the zip install got me past that so kudos on that. But now I get this response:

> bash <(curl -sSL https://raw.githubusercontent.com/SpotX-CLI/SpotX-Linux/main/install.sh)
> 
> **************************
> SpotX-Linux by @SpotX-CLI
> **************************
> 
> SpotX-Linux version: 1.2.3.1115-1
> 
> 
> Spotify PATH is set to /usr/bin, searching for Spotify directory...
> Spotify directory not found. Set directory path with -P flag.
> Exiting...

Edit: Okay, I see there’s two -P flags. The one I need to use is obvious, but what would be the Spotify directory? Yes, I know, it’s a newbie question. Forgive me for being slow right now and not remembering what I’ve learned in recent months.

Hmmm, I’m not familiar with Spotify - I’ve never used it - but looking at the spotify PKGBUILD it looks like it installs the Spotify directory to /opt (lines 79-81).

So, how about trying installing SpotX while specifying the path with -P, like this:

bash <(curl -sSL https://raw.githubusercontent.com/SpotX-CLI/SpotX-Linux/main/install.sh) -P /opt/spotify

Does that work?

3 Likes

It appears to have installed. My man!

Edit: All ads gone and Spotify appears to have upgraded to premium. Thank you brother!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.