Mpv scripts not working when mpv called from another program

I have installed mpv including a couple of scripts using home-manager. Everything works well when running mpv from the terminal. However, I use a script called ytfzf that allows me to play youtube videos using mpv, and in this case when mpv is run, I can see that the scripts are not being run.

How can I ensure that ytfzf calls mpv with the scripts I installed?

1 Like