abba23 / spotify-adblock-linux

Spotify adblocker for Linux
GNU General Public License v3.0
721 stars 68 forks source link

auto run script. #9

Closed AllyPallies closed 5 years ago

AllyPallies commented 5 years ago

Hi there im having some issues with my autorun script and wanted to see if you can give some pointers on whats going on or how to fix them?

Here is what i have so far

!/bin/bash

LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify any help would be wonderful thank you again for everything!

tgw314 commented 5 years ago

I'm using a desktop entry like this without using a shell script

[Desktop Entry]
Type=Application
Name=Adblocked Spotify
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

I wish you good luck from Japan :)

AllyPallies commented 5 years ago

I can understand that but I’m really looking for a auto run option for it to auto run on boot. No need to click anything.

tgw314 commented 5 years ago

/home/[username]/.config/autostart I think it will automatically start if you put it here

AllyPallies commented 5 years ago

I have KDE and it’s not working. I’ve tried all I know of for it to work with no luck at all.

tgw314 commented 5 years ago

https://wiki.archlinux.org/index.php/KDE#Autostart I think this will be helpful

AllyPallies commented 5 years ago

Yea I’ve read that and still doesn’t help the preload issue, I’ve also LS’d the file and it doesn’t exist either. I don’t understand but if you look at my original post you’ll see I’ve already done everything that site told you to do. So I’m a little confused why you posted a link without looking at what I’ve done already.

tgw314 commented 5 years ago

Does changing the permissions on the list of things you have done?

AllyPallies commented 5 years ago

Yep. I’ve done all that also made it executable. Chmod the file as well. No luck.

tgw314 commented 5 years ago

There seems to be nothing I can do other than recommend Budgie Desktop. Sorry for not helping you.

abba23 commented 5 years ago

I’ve also LS’d the file and it doesn’t exist

How did you install it?

AllyPallies commented 5 years ago

I did a file lookup and the app couldn’t find it.

abba23 commented 5 years ago

So you're saying the file is in neither of those locations? It seems the problem is a failed installation then, rather than a mistake in your autorun script.

Again, how exactly did you install it? Did you run the commands exactly as they are in the readme? Were there any error messages?

AllyPallies commented 5 years ago

If I load the load command in a terminal it works perfectly as I’ve saod before In my first post. So therefor it’s installed correctly. Also installed via AUR pacman.

abba23 commented 5 years ago

If I load the load command in a terminal it works perfectly as I’ve saod before In my first post

You didn't say that in your first post. You really just posted your one-liner script and stated that you're "having some issues" with it.

installed via AUR pacman

Then the file should be at /usr/lib/spotify-adblock.so, as I said above. Is it there? Does it work if you change the path in your script accordingly?

AllyPallies commented 5 years ago

Negative, I’ve tried both ways without any luck at all. If I load it via the normal command in thermal is works flawlessly but my auto run script keeps failing. Also I’ve noticed once and a while adds are coming threw. How’s that possible?

abba23 commented 5 years ago

If I load it via the normal command in thermal is works flawlessly I’ve noticed once and a while adds are coming threw

So it isn't actually working flawlessly?

How’s that possible?

It isn't. Again, did you verify that the file is actually there? Can you try reinstalling it both through the AUR and manually (as described in the readme), and check if the file exists after that?

For what it's worth, I just ran your script and it's working fine for me. The problem must be somewhere on your end.