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

Support chrome/chromium installed via snap (Ubuntu 20) #33

Open
balta2ar opened this issue May 27, 2020 · 4 comments
Open

Support chrome/chromium installed via snap (Ubuntu 20) #33

balta2ar opened this issue May 27, 2020 · 4 comments

Comments

@balta2ar
Copy link
Owner

Mediator app wouldn't start when installed into a Chrome/Chromium via snap.

There are several issues with how Chromium is run via snap:

  1. Chromium can't see locally-install pip packages, it doesn't have access to ~/.local. Solution: sudo pip3 install brotab
  2. Native app config is in a different place, e.g.: ~/snap/chromium/1165/.config/chromium/NativeMessagingHosts/brotab_mediator.json. Solution: support that location in bt install (TODO).
  3. Wrong path to binary. It should be something like /usr/local/bin/bt_mediator
  4. The mediator still wouldn't start with the message: "Native app cannot be found" or along those lines.

I couldn't figure out all the issues with the snap-installed chromium and I'll probably will not do that since I removed it and installed from apt repo: sudo add-apt-repository ppa:saiarcot895/chromium-dev. Anyone's willing to dig into it, welcome.

@blurayne
Copy link

It's snap confinement. See https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1741074

I'm also fiddling around to find a workaround. Main problem is that Native Messaging Hosts do have dependencies you don't just want to put into the snap. So I don't see a probable solution around there.

@xeor
Copy link

xeor commented Jul 31, 2020

This is also a problem if you are using firefox installed using snap

@jirislav
Copy link

jirislav commented May 4, 2022

Can confirm the problem is also with Firefox. Which is a bigger problem now, since firefox is shipped as snap by default in Ubuntu LTS 22.04.

@h43z
Copy link

h43z commented Feb 12, 2024

brotab still works you just have to give it permission.

Here how it's done for firefox

flatpak permission-set webextensions brotab_mediator snap.firefox yes

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

No branches or pull requests

5 participants