Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't seem to install #108

Open
dennisTGC opened this issue Mar 13, 2022 · 14 comments
Open

Can't seem to install #108

dennisTGC opened this issue Mar 13, 2022 · 14 comments

Comments

@dennisTGC
Copy link

Firefox connection check fails after installation.

I'm running Ubuntu 22.04 (so still experimental for a month) and Firefox 98.

I'll try update this issue after 22.04 becomes LTS.

@andy-portmen
Copy link
Owner

Is there any error on the installer.sh's output?

@dennisTGC
Copy link
Author

dennisTGC commented Mar 14, 2022

No, not that I can see:

NodeJS status = 1
Installer is using the embedded NodeJS

 -> Root directory is /home/user/.config
 -> Creating a directory at /home/user/.config/google-chrome/NativeMessagingHosts
 -> Chrome Browser is supported
 -> Creating a directory at /home/user/.config/chromium/NativeMessagingHosts
 -> Chromium Browser is supported
 -> Creating a directory at /home/user/.config/vivaldi/NativeMessagingHosts
 -> Vivaldi Browser is supported
 -> Creating a directory at /home/user/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts
 -> Brave Browser is supported
 -> Creating a directory at /home/user/.config/microsoftedge/NativeMessagingHosts
 -> Microsoft Edge Browser is supported
 -> Creating a directory at /home/user/.mozilla/native-messaging-hosts
 -> Firefox Browser is supported
 -> Creating a directory at /home/user/.waterfox/native-messaging-hosts
 -> Waterfox Browser is supported
 -> Creating a directory at /home/user/.tor-browser/app/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts
 -> Tor Browser is supported
 -> Creating a directory at /home/user/.thunderbird/native-messaging-hosts
 -> Thunderbird Email Client is supported
 -> Creating a directory at /home/user/.config/com.add0n.node
 => Native Host is installed in /home/user/.config/com.add0n.node


>>> host is ready <<<

@andy-portmen
Copy link
Owner

It looks fine! Let's see if we can find something in the browser's console log.

Use Ctrl + J to open the browser console. Now try to use the extension and see if it generates a new error in the log section of the console.

@Gitoffthelawn
Copy link

Small correction... use Ctrl + Shift + J to open the browser console.

@dennisTGC
Copy link
Author

sorry it took a while, github had issues too..

Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. 2 background.js:1
Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. 2 background.js:1
ExtensionError: No such native application com.add0n.node ExtensionUtils.jsm:58:5
Unchecked lastError value: Error: Attempt to postMessage on disconnected port common.js:51
Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. 4 background.js:1
ExtensionError: No such native application com.add0n.node ExtensionUtils.jsm:58:5
Unchecked lastError value: Error: Attempt to postMessage on disconnected port index.js:93

@sean1138
Copy link

sean1138 commented Apr 1, 2022

xubuntu 20.04 same
image

@sverris
Copy link

sverris commented Apr 3, 2022

Same here (Lubuntu, 22.04). Does not work for VLC and MPV anymore since yesterday. I switched to 22.04 beta yesterday. Wild guess: Firefox switched to snap, and I get the feeling that breaks something...

@andy-portmen
Copy link
Owner

as far as I know, a Snapped app is sandboxed to a single directory inside "~/snap/" directory. To have a valid native client, we need to copy the executable to this directory. Even though this fixes the communication issue, still not a useful approach. There is no way to access the external browser (it is located outside of the root directory).

I am attaching a working native client (x64 only) for testing purposes. Use Firefox with Ctrl + Shift + J to see the error logs.

linux.zip

@sverris
Copy link

sverris commented Apr 4, 2022

Thanks. The new client does not help with MPV, but for VLC it does create a working connection. Yet the path for the VLC binary ( /snap/bin/vlc ?) is not correct - and whatever I try, it does not work.

@dennisTGC
Copy link
Author

The connection works, but it can't find the executable, not even when filling in the correct path. Happens with brave and chromium-browser.

Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. 4 background.js:1
    send moz-extension://5627815e-f99e-4a0d-86a9-bb84f55f5d09/background.js:1

@SigmFreud
Copy link

SigmFreud commented May 7, 2022

...a Snapped app is sandboxed to a single directory inside "~/snap/" directory. To have a valid native client, we need to copy the executable to this directory. ...I am attaching a working native client linux.zip

A directory was needed:
-> Creating a directory at /home/user/snap/firefox/common/com.add0n.node
=> Native Host is installed in /home/user/snap/firefox/common/com.add0n.node
...
-> Creating a directory at /home/user/snap/firefox/common/.mozilla/native-messaging-hosts
-> Firefox Browser (snap version) is supported
And ffmpeg installed to:
/home/user/snap/firefox/common/ffmpeg

Now it works! Thanks very much!

@staerz
Copy link

staerz commented Jul 15, 2022

Hi @andy-portmen,

thanks for your effort in providing this addon in the first place.
I was about to type together my own little local extension but then ran into the problem of javascript opening an external application from firefox ...

Unfortunately I am one of those

Distributor ID:	Ubuntu
Description:	Ubuntu 22.04 LTS
Release:	22.04
Codename:	jammy

users who run into the problem that @sean1138 is describing.

I have also tried your provided hotfix but unfortunately that didn't help.

Note that I've installed nodejs prior to running the install.sh:

/usr/bin/node
NodeJS status = 0
Installer is using your system NodeJS.
...

but I still get the connection problem.

Any help in sight?

@jgsimard
Copy link

@andy-portmen @staerz any updates on this? I am on ubuntu 22.04 LTS. I got VLC and firefox from snap and it is not working

@staerz
Copy link

staerz commented Jan 10, 2023

@andy-portmen @staerz any updates on this? I am on ubuntu 22.04 LTS. I got VLC and firefox from snap and it is not working

Nope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants