-
Notifications
You must be signed in to change notification settings - Fork 285
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
Flatpak registration doesn't alway work #160
Comments
Can you point me to the AUR build? I'll double check that it's correct. If you run the binary that way, what happens:
? In theory it should just hang and do nothing. Can you confirm? Then, try this:
And check if the extension works. Thank you. |
The first command just hung like you said, as all it does is open the program. Here's the AUR package: It's the regular Firefox install from the Arch repo: |
Does it create a file |
Yes and yes. {
|
If you go here: https://github.com/aclap-dev/vdhcoapp/blob/master/assets/instruction1.png Does it say the companion app is not installed? |
Idk what you want me to look for there. It's an image screenshot that says "No media to process in the current tab". |
|
Also, can you give it a try with a Firefox official build? Download https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US untar, and run. See if this changes anything. Thanks for helping out. |
Oh, sorry about that. 😀 |
Hey I had a very similar issue on Arch* The native messaging JSON contained the wrong add-on ID that was allowed, thus actually even if installed it wasn't allowing Firefox to communicate with the native host add-in I fixed it by adding the addons actual ID (so replacing Took me months to solve ;D |
@mokshasoul how is your ID not |
@CHJ85 where are you getting the download helper extension from? |
@mokshasoul what's the ID of the extension? |
I'm going to have a look in the vening its on my desktop, maybe I'm missremembering something but it was def. an issue with the native-messaging file |
I downloaded the addon from the mozilla addon website. |
I solved it. Not sure what the problem was. But now it says "Companion App installed" after I uninstalled the current one and installed the vdhcoapp-bin version from the AUR instead of the standard one. Guess there's a difference between the 2 packages.. |
@mokshasoul thanks - just let me know what the json file look like on your system. |
Understood. I think the issue was the binary location on aur-based packages. |
This is what I ended up with btw: |
I'm having the same issue with the FireFox snap 117.0.1 on Ubuntu 22.04.3 I did /opt/net.downloadhelper.coapp/bin/net.downloadhelper.coapp-linux-64 install --user but FF still says the companion app isn't installed. I tried on Chromium also with similar results. |
@boydthomson In Ubuntu, Snap packages are stored in a different location than traditional APT-based packages. Snap packages are typically stored in the /snap directory. Each Snap package will have its own subdirectory under /snap where it is mounted. For Firefox installed via Snap, you should find the relevant files under /snap/firefox/ |
@boydthomson Hi! I think this has been fixed by the Firefox team recently. It should work "out of the box". Do you mind replying here: #168 ? I'd like to investigate. |
@mokshasoul Hey, do you mind telling me where you got your addon from? This ID is unknown to us. I think you might have installed an addon from the wrong place (might be unsafe). |
I have the same issue on Fedora KDE 38 with Firefox 118.0.2 and Chrome 118.0.5993.88, as a Flatpak, addon 8.0.0.6, vdhcoapp 2.0.4 from the https://www.downloadhelper.net/install-coapp-v2. I did next steps:
Nothing has helped. Please let me know how to make it work. UPD: this hint helped me: #137 (comment) |
@kkovaletp hmm, the fact you have to use the linked workaround is surprising to me. This is not supposed to be necessary anymore in Firefox. You're not the first one to run into that issue, and I'd like to get to the bottom of it. Would be great if you could help out.
|
@paulrouget it is a surprise for me that there is a requirement \ dependency to the FF privacy settings: I didn't see that in the installation instructions. I think that providing the complete list of all the requirements as a prerequisite step of the installation guide would really help in many cases.
|
There is not. Firefox has that option, but it's off by default.
What do you mean? I doubled checked here, and it seems to work as expected. I'd like to understand how your setup differs from mine. Can you confirm these 3 json have exactly the same content and are all pointing to /usr/local/vdhcoapp/vdhcoapp
Also, can you check in Firefox menu > Help > About Firefox that it says "mozilla-flatpak - 1.0"? |
VDH settings > General > Companion App not installed > Checking companion app returned: An unexpected error occurred
yes, used KDiff to make sure)
yes |
What does this file says:
|
|
I have all the same
I did all as described and got the same result: co-app not found, unexpected error in the add-on settings. I tried to analyze what else could prevent the browser from communicating with the co-app on the host. I'm not sure how flatpak apps communicate with the host, but I have a firewall and SELinux enabled. Don't I need to add some configuration there? |
Because V2 is still in testing phase. It will open the V2 download page if you use the beta version of the addon: https://www.downloadhelper.net/firefox/betas
Oh… that might be it. Maybe this is relevant: https://discussion.fedoraproject.org/t/does-selinux-confine-flatpack-apps/73111/3 I don't have SELinux installed here. Hard to try to reproduce. |
OK, I see. It must have been in beta for a long time already, as I remember that I've been using the 2.x version on my Mac for a while - it was installed and updated by the homebrew there.
I'm really far away from configuring SELinux manually)
and here is the output for the
Maybe you could advise on how to modify it if needed?
setting up a VirtualBox VM isn't an option for you? |
I installed Fedora, and I cannot reproduce the issue. I'm running out of ideas. @kkovaletp did this use to work with the older coapp? |
@kkovaletp also, to make sure it's indeed a sandboxing issue (SELinux or Flatpak), can you try to download a non-flatpak version of Firefox (https://www.mozilla.org/en-US/firefox/linux/) and see if it works? |
@paulrouget, sorry for the delay, I was busy with other things...
Did you install the Fedora 38 KDE or the regular one with Gnome? I use the KDE build
no, it is not. the behavior is completely the same as for 2.x version:
it works in non-flatpak version with enabled SELinux right after installation of the add-on, as co-app is installed system-wide and user-wide, but for some reason, the dnf-installed FF don't use the same profile, as the flatpak one, so it was started clean and I had to install the add-on manually. |
Gnome. It's possible that there is a KDE-specific thing going on here.
Sadly no. The process is spawned by Firefox itself. So it's not something we can easily debug. You can From what you're describing, it feels like the Firefox short-circuit to traverse the flatpak sandbox doesn't work on your machine. I think for these weird case, best is to install the coapp within the Firefox sandbox. It's stupid but I don't see a better way of doing it. |
@paulrouget, I finally got it working! when I wrote the previous comment and asked about the way to debug it, I started googling how to debug an add-on for FF and how to debug the FF itself on the flatpak level. and I found the command: once I started the FF this way, I pressed a button to find the co-app to trigger the error again to be logged. then I analyzed the log and the 1st string there was: and it just works! now I remember that there is a good practice on Linux to put all unpackable software in the |
@kkovaletp oh wow … that's amazing detective work. Thank you so much! I will update the documentation right away :) |
Excuse me if I hijack this already closed thread, but I am neither very competent with github nor with Linux. I have installed the co-app using the /usr folder and it works with the vivaldi browser which is installed from the main repository. However, the /opt folder would have been my first choice, but the instructions clearly state not to install the co-app as sudo. And afaik, it is not even possible to copy files to /opt without sudo. Is it possible to run the install in the /opt folder without using sudo rights? |
Let me try to clarify the installation process on Linux: If you use the If you use the If you use the Please not we have an issue at the moment with the CoApp and Ubuntu: aclap-dev/video-downloadhelper#12 Hope this helps. |
(I assume that) The idea behind this recommendation is to limit the co-app installation to the current user while installing it using
Yes, but you need to do some preparation:
|
Wow, many thanks to both of you for your very prompt replies!! Both of them are helpful to me. The Thanks for pointing out the importance of the ownership - I have the feeling that this was the missing piece for me to understand how to use the Have a nice weekend both of you !! |
If you're using Libre Wolf it works if you move the native-messaging-hosts directory to /usr/lib/librewolf/ It should match this: Sorry if this is in the wrong place or already mentioned elsewhere. |
Hi there. vdhcoapp is not recognized by Firefox build 117.0, on Manjaro Linux.
I installed it first through the official website. When that didn't work, I used the AUR build.
Both are essentially the same package with the same files, same installation location and so on.
The installation directory is the same as always "/opt/net.downloadhelper.coapp".
At first I thought it was a file permission issue, so I changed the owner of the directory and files from root to my local user. This did not do the trick either. Sometimes it does when permissions are messed up for whatever reason.
The text was updated successfully, but these errors were encountered: