vsvinav / spotify-adblock-linux

35 stars 8 forks source link

Feature Request: #14

Open rodude123 opened 4 years ago

rodude123 commented 4 years ago

Hey it would be nice if it would run in the background and I wouldn't need to keep the window open

sappelhoff commented 4 years ago

for now you could try nohup python adspotter & ... haven't tested that yet, but it might work. After running this command, you can close the terminal and it will continue running in the background, saving all its output to a nohup.out file.

Closing spotify should lead to an error with adspotter and thus close that process automatically.

sappelhoff commented 4 years ago

indeed, that seems to work :-) just make yourself an alias somewhat like:

alias adspotter='cd ~/spotify-adblock-linux ; nohup python adspotter &'

... assuming ~/spotify-adblock-linux is where you have the adspotter repo.

rodude123 commented 4 years ago

Thank you, I'll try it out

rodude123 commented 4 years ago

hey didn't work for me image I had still had the window open. Is there anyway I can close the window and it still work

sappelhoff commented 4 years ago

yes, after nohup python adspotter & you can just close the window

rodude123 commented 4 years ago

Well after all this I closed the window and nothing happeened but it's ok

jaideraf commented 4 years ago

alias adspotter='cd ~/spotify-adblock-linux ; nohup python adspotter &'

alias adspotter='cd ~/spotify-adblock-linux ; nohup python3 adspotter &' to me (Ubuntu 20.04)

ochen1 commented 3 years ago

First thing that comes to my mind is to use something like: ./adspotter > /dev/null & disown && exit 0

Don't know if it will work.