Closed paulrouget closed 8 months ago
We need to figure out the proper profile directory for Tor on Linux and Mac, and the Windows registry key.
I suppose on Mac it is ~/Library/Application\ Support/TorBrowser-Data/Browser
. Hope this helps.
There's no way of doing this without spawning a Tor proxy Coapp-side. It's not something I'm planning to work on anytime soon.
Before your latest update, it was working properly on Tor.
Hi,
after several hours/days of analyzing the solution was quite simple. The following steps were executed on an OpenSUSE Leap 15.5 system with the Tor Browser from the distribution, but should work for the other Linux versions as well:
I downloaded and installed the co-app as described for Linux giving output like Writing /home/peter/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json Writing /home/peter/.var/app/org.mozilla.firefox/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json Writing /home/peter/.config/chromium/NativeMessagingHosts/net.downloadhelper.coapp.json
I started the torbrowser with strace: strace -f -o strace.log torbrowser-launcher
navigated to a video that I want to download, started the download and got the error message regarding the coapp not being installed
closed the torbrowser
grep coapp strace.log ... 3654 openat(AT_FDCWD, "/home/peter/.local/share/torbrowser/tbb/x86_64/tor-browser/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json", O_RDONLY <unfinished ...> 3654 openat(AT_FDCWD, "/usr/lib/mozilla/native-messaging-hosts/net.downloadhelper.coapp.json", O_RDONLY <unfinished ...> 3654 openat(AT_FDCWD, "/home/peter/.local/share/torbrowser/tbb/x86_64/tor-browser/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json", O_RDONLY <unfinished ...> 3654 openat(AT_FDCWD, "/usr/lib/mozilla/native-messaging-hosts/net.downloadhelper.coapp.json", O_RDONLY <unfinished ...> 3811 sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="8\1\0\0\4\0\0\0\23\0q\0\1\0\0\0\0\0\0\0\377\377\377\377\350\377\377\377(\0\0\0"..., iov_len=64}, {iov_base="loadhelper.net/install-coapp-v2?"..., iov_len=280}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_DONTWAIT <unfinished ...> 3811 sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="4\1\0\0\4\0\0\0\24\0q\0\1\0\0\0\0\0\0\0\377\377\377\377\303\377\377\377(\0\0\0"..., iov_len=64}, {iov_base="loadhelper.net/install-coapp-v2?"..., iov_len=276}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_DONTWAIT <unfinished ...> peter@dyn240:~/temp> ...
checked all the files from above that Downloadhelper tried to open regarding their existence, e.g. ls /home/peter/.local/share/torbrowser/tbb/x86_64/tor-browser/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json ls: Zugriff auf '/home/peter/.local/share/torbrowser/tbb/x86_64/tor-browser/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json' nicht möglich: Datei oder Verzeichnis nicht gefunden
none of them was found
the installation log of the co-app showed me that a json file was placed at /home/peter/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
I created a path where Downloadhelper has been searching for that json file mkdir -p /home/peter/.local/share/torbrowser/tbb/x86_64/tor-browser/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/
copied one of the json files to that directory cp /home/peter/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json /home/peter/.local/share/torbrowser/tbb/x86_64/tor-browser/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/
checked for the existence of a file ls /home/peter/.local/share/torbrowser/tbb/x86_64/tor-browser/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json => /home/peter/.local/share/torbrowser/tbb/x86_64/tor-browser/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
The environment was fine now. I started the torbrowser-launcher and the coapp worked fine.
=> /home/peter/.local/share/torbrowser/tbb/x86_64/tor-browser/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
works like a charm
Thanks for your great effort! I had to copy the file to ~/Library/Application Support/TorBrowser-Data/Browser/Mozilla/NativeMessagingHosts
and now it works fine.
Thanks @shobee it is now working fine for me by just coping the already installed coapp for Mozilla to your mentioned folder
cp /Library/Application Support/Mozilla/NativeMessagingHosts/net.downloadhelper.coapp.json /Users/amin/Library/Application Support/TorBrowser-Data/Browser/Mozilla/NativeMessagingHosts
See https://groups.google.com/g/video-downloadhelper-q-and-a/c/FROKWGBR0yk/m/-kBVGZ0sDgAJ