darktrojan / openwith

Open With add-on for Firefox
https://addons.mozilla.org/addon/open-with/
412 stars 71 forks source link

Stopped working with mpv and scripts #202

Closed haadr closed 6 years ago

haadr commented 6 years ago

Firefox ESR 52.5.2 (64-bit) Debian Open With 6.8.6

Hi,

All I used open with for was mpv. That has stopped working, but I'm not entirely sure when. mpv's log is attached below, but a relevant line seems

[ytdl_hook] PermissionError: [Errno 13] Permission denied: '/home/minion/.local/lib/python3.5/site-packages/pkg_resources/init.py'.

However the permissions for that file and the parent directions are good. I even tried giving more permissions than I think is correct:

-rwxr-xr-x 1 kibitz kibitz 103K sep. 5 17:14 /home/kibitz/.local/lib/python3.5/site-packages/pkg_resources/init.py

Note: I can still run the exact same mpv command just fine from the terminal manually. I checked confirmed that the command that works when I run it manually is the same as the one openwith uses by running

watch -n 0.2 "ps aux|grep mpv"

and checking. So mpv does run with openwith, but somehow youtube-dl doesn't run due to permission errors. Openwith also seems to run as my user. I tried creating a simple bash script in my home directory to load mpv for me, but openwith doesn't seem to run that at all.

Any pointers?

Thanks for a great addon!

mpv.log

haadr commented 6 years ago

Never mind! Sorry about not investigating more before submitting, I managed to fix it by fixing a broken python environment.

polyzen commented 6 years ago

Please close this.