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

coapp not found on Debian 11/sid #96

Closed
knghtbrd opened this issue Aug 12, 2021 · 7 comments
Closed

coapp not found on Debian 11/sid #96

knghtbrd opened this issue Aug 12, 2021 · 7 comments

Comments

@knghtbrd
Copy link

Firefox VDH 7.6.0 shows "Verifying Companion App…" (but never does). It is installed:

ii  net.downloadhelper.coapp 1.6.3        amd64        Video DownloadHelper companion app

Happy to help debug what the problem is, if I can. This Firefox profile has moved from Debian sid to Mint 20.x last June and back to Debian a year later. Tried a new profile in case some extension was causing a problem. That didn't help. I think the Flatpak version of Firefox can't access coapp at all or I'd have tried it as well.

I don't know much about the native messaging protocol or how to debug it, I'm afraid, so I'm not sure how to make this a more intelligent initial ticket.

@mi-g
Copy link
Collaborator

mi-g commented Aug 12, 2021

I'm afraid the coapp won't work, at least "as is", with a flatpak-installed version of Firefox. In such a situation, the Firefox won't be able to simply see the coapp installed files.

@staltz
Copy link

staltz commented Aug 12, 2021

For those who ran into this issue as I did, Firefox installed via flatpak won't work, neither via snap, but apt install firefox worked for me.

@knghtbrd
Copy link
Author

I didn't expect it would work with Flatpak's firefox. But it doesn't work with the Debian package either.

@knghtbrd
Copy link
Author

knghtbrd commented Oct 24, 2021

Determined the problem. Firefox on Debian uses AppArmor. A solution:

Add this to /etc/apparmor.d/local/usr.bin.firefox:

# needed for VideoDownloadHelper's coapp
/opt/net.downloadhelper.coapp/** rix,

Then as root:

systemctl reload apparmor

May need to restart your browser after that. I didn't. This is out of coapp's hands, mostly, but a note in a README or something might help.

@Jeoshua
Copy link

Jeoshua commented Mar 31, 2022

"apt install firefox" is no longer an option for Ubuntu. They stopped offering firefox in any way other than as a snap, or as a flatpak. This error has just moved from a minor inconvenience to a major roadblock for a significant portion of Linux users.

@knghtbrd
Copy link
Author

The issue of not supporting flatpak/snap just became a bigger issue, but I think you probably should've created a new ticket for that. The Flatpak version was my attempted workaround for the problem in Debian (not Ubuntu since Ubuntu has its own packages and its own batshit crazy way of doing … increasingly everything. sigh)

The problem I filed this bug about exists in the Debian Firefox package, and was fixed by adding an AppArmor tweak. I'm not sure if that tweak belongs in Debian's firefox package or in coapp ultimately, but it's a simple solution in either case.

Solving it for Flatpak requires opening a hole in a different kind of sandbox, possibly by building a flatpak version of coapp that runs the service that way—although there'd still be some manual commands needed to enable permission for Firefox to access it. Good security is always deny all, except allow some.

Snap is similar, possibly easier, since its not so focused on GUI/desktop apps.

@paulrouget
Copy link
Member

The latest version of Firefox fixes this issue. Please re-open if that's still an issue.

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