Closed wklaebe closed 1 year ago
I have the same versions of Firefox, VDH, and Coapp, on Fedora 35 Linux. It is working 100% for me.
What distro are you on?
And when was firefox updated? Perhaps it is a distro thing.
I'm on Devuan, somewhere between testing and unstable. Firefox is not from Devuan, but https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US (which currently still redirects to https://download-installer.cdn.mozilla.net/pub/firefox/releases/101.0.1/linux-x86_64/en-US/firefox-101.0.1.tar.bz2), which I then unpack to /opt/firefox as root for security reasons. I think that should ideally work everywhere.
Oh, another thing:
$ printf "<\0\0\0{\"type\":\"weh#rpc\",\"_request\":44,\"_method\":\"info\",\"_args\":[]}" | ~/net.downloadhelper.coapp-1.6.3/bin/net.downloadhelper.coapp-linux-64 ~/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json "{b9db16a4-6edc-47ec-a1f4-b86292ed211d}"
G{"type":"weh#rpc","_reply":44,"_error":"Method info is not a function"}
$
Doesn't even need Firefox for that.
I strace
-d that further and noted it reading ~/.npmrc (which contained exactly the line cafile = /usr/share/ca-certificates/mozilla/
). Afterwards, it tried to open() and read() that directory, which failed with -EISDIRECTORY.
After I removed ~/.npmrc, the download helper works.
Would be nice if it would output some better error message in the future...
Superseded by https://github.com/aclap-dev/vdhcoapp/issues/170
In firefox (newest available, 101.0.1), Video DownloadHelper 7.6.0 claims "Companion App not installed", "Checking companion app returned: Method info is not a function". Using strace, I can see ~/net.downloadhelper.coapp-1.6.3/bin/net.downloadhelper.coapp-linux-64 $HOME/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json '{b9db16a4-6edc-47ec-a1f4-b86292ed211d}' being execve'd. It then gets handed two commands on fd 0 and replies with error messages:
This seems to keep me from downloading videos...