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

Doesn't work on Ubuntu 22.04 because browser cannot access native client #78

Open
SuperSonicHub1 opened this issue Dec 27, 2022 · 4 comments

Comments

@SuperSonicHub1
Copy link

See darktrojan/openwith#334 for a similar issue.

@stax76
Copy link

stax76 commented Jan 3, 2023

I have it running fine on Ubuntu 22.04, but don't remember how I've installed and configured it.

@AnttiBoman
Copy link

My similar/same problem was because of AppArmor. I fixed it by adding the following lines to /etc/apparmor.d/local/usr.bin.firefox :

@{HOME}/.config/com.add0n.node/* r,
@{HOME}/.config/com.add0n.node/run.sh ix,
/usr/bin/node ix,

After that, I ran sudo systemctl reload apparmor.service and got the connection working.

The actual script will need AppArmor settings defined, too, but I don't have time for that now.

OS: Ubuntu 22.04.1 LTS
Firefox: 110.0.1+build2-0ubuntu0.22.04.1~mt1 (from apt repository ppa:mozillateam/ppa)

@mjseppa
Copy link

mjseppa commented Apr 1, 2023

With waterfox on flatpack or anything with flatpak you just need to enable access for the plugin in the sandbox.
Setup the startup command to include it:
flatpak --filesystem=$HOME/.config/com.add0n.node run net.waterfox.waterfox
Also add the path to the application/script you are running.

@lucknaumann
Copy link

lucknaumann commented Sep 24, 2023

My similar/same problem was because of AppArmor. I fixed it by adding the following lines to /etc/apparmor.d/local/usr.bin.firefox :

@{HOME}/.config/com.add0n.node/* r,
@{HOME}/.config/com.add0n.node/run.sh ix,
/usr/bin/node ix,

After that, I ran sudo systemctl reload apparmor.service and got the connection working.

The actual script will need AppArmor settings defined, too, but I don't have time for that now.

OS: Ubuntu 22.04.1 LTS Firefox: 110.0.1+build2-0ubuntu0.22.04.1~mt1 (from apt repository ppa:mozillateam/ppa)

As stated, this gets the Native Messaging client working, but not the add-on itself. If someone could post the AppArmor settings for the actual script, that would be fantastic. Perhaps @AnttiBoman has the time now? 😄

OS - KDE Neon User Ed. (Ubuntu 22.04 LTS base) with FF from the Mozilla PPA - 118.0 (but issue has been present since about FF 106 regarding any add-on's Native Messaging client).

EDIT: I installed Firefox manually following the instructions from their website. All Native Messaging add-ons work without issue now. Note that the manually installed Firefox needs to be the same version (or greater) as the currently installed one to use the same profile. Firefox sync may only get your add-ons and bookmarks back if the versions differ.

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

5 participants