aclap-dev / vdhcoapp

Companion application for Video DownloadHelper browser add-on
GNU General Public License v2.0
1.8k stars 290 forks source link

DownloadHelper coApp 1.6.3 not installable on Ubuntu 22.04 (Snap/Flatpack issues) #139

Closed BlackMage2 closed 1 year ago

BlackMage2 commented 2 years ago

I have Ubuntu 22.04 and i cant install net.downloadhelper.coapp-1.6.3. when i try to install it in system or user mode, it just stands still and nothing happens.

marcoagpinto commented 2 years ago

I have also been unable to make it work in 22.04.

I right-click in the .deb file and select to run as an installer blah blah, it installs, but the Firefox add-on doesn't detect the PC Companion, it says it is not installed.

BlackMage2 commented 2 years ago

exactly, i have the same experience with firefox 105. but: on chrome 98.0.4758.102 all works with Video DownloadHelper Version 7.6.0.0 Video DownloadHelper Version 7.6.0.0 detects on firefox 105 my Video DownloadHelper not! the addon says everytime:

Checking companion app returned: No such native application net.downloadhelper.coapp

its a bug with firefox 105

BlackMage2 commented 2 years ago

is the coApp still actively developed?

maybe just a small thing needs to be changed to make it work again

petitminion commented 2 years ago

same here

justunsix commented 2 years ago

Try using the Linux - 64 bits - targz option on the Install page along with the extra steps listed on the page.

I was able to get it working using the .deb file 1 month ago on Ubuntu 22.04; however, I recently did a new install and had to switch to the CoApp's compressed binary install. Firefox did recognize the install.

RylanSchaeffer commented 2 years ago

I tried @justunsix 's suggestion, and I can now download a Youtube video without the "Firefox add-on doesn't detect the PC Companion" error, but now the downloaded .mp3 file is 2 seconds long and appears with the name "cancel" in the video player.

Any suggestions?

As evidence that I correctly installed using the targz file, I see: VdhCoApp: VdhCoApp is ready to be used at the end of the process.

BlackMage2 commented 2 years ago

in firefox for me is not detected, but in chrome it will be recognized.. chrome version is Version 98.0.4758.102 and firefox version is 106.0.1 (64-bit)

why in firefox is the addon not detected?

justunsix commented 2 years ago

@RylanSchaeffer regarding the .mp3 issue, do downloads work for other links? I have had the same issue, but it was specific to certain YouTube links which are somehow blocked.

michel1948 commented 1 year ago

With firefox installed with snap (firefox is in the snap list) it's impossible to find the coapp 1.6.3 I read : Le test de l'appli compagnon a retourné (test of coapp gives ): An unexpected error occurred But with the command, /snap/firefox/current/usr/lib/firefox/firefox, the coapp is found.

BlackMage2 commented 1 year ago

in firefox (now 107.0.1 snap, started with /snap/bin/firefox) the companion app detected still not, on run with 'firefox' or '/snap/bin/firefox'. furthermore:

Checking companion app returned: An unexpected error occurred

but when i start firefox with /snap/firefox/current/usr/lib/firefox/firefox, the coapp is found

el-calavera commented 1 year ago

To everyone else struggling with this, I solved the problem by using the following command to set permissions: flatpak permission-set webextensions net.downloadhelper.coapp snap.firefox yes

I have absolutely no idea what was wrong and what it had to do with flatpak, but this solved the "unexpected error" immediately.

marcoagpinto commented 1 year ago

Hello!

Where do we write or select that command on Ubuntu?

Thanks!

el-calavera commented 1 year ago

@marcoagpinto : Just put it in the command line.

Apparently this is part of the WebExtensions XDG desktop portal which is managing the access of sandboxed browsers (like in snap or flatpak) to native applications. We should have gotten a popup requesting that permission, but maybe that didn't happen or we accidentally dismissed it.

Use the following command to check permissions: flatpak permissions webextensions

If the permission for net.downloadhelper.coapp is set to "no", you can correct this by issuing the command I mentioned: flatpak permission-set webextensions net.downloadhelper.coapp snap.firefox yes

Good luck!

marcoagpinto commented 1 year ago

Heya!

Thank you!

I am downloading a YouTube video without issues.

❤️

michel1948 commented 1 year ago

Thank you el-calavera. Your solution works perfectly on my laptop with Ubuntu 22.04

cyfex commented 1 year ago

Can we do it without flatpak because I'm using just snap?

This page below seems to provide some information about how snap deals with permissions, but I still have no idea how to work with coApp https://ubuntu.com/blog/a-guide-to-snap-permissions-and-interfaces

el-calavera commented 1 year ago

@cyfex Just to clarify: this is working for the firefox snap.

If I understood correctly, this problem has nothing to do with snap interfaces. Rather, the interfaces required are already connected, though I don't know which ones are used. I suspect gnome or gtk.

Native messenging in snap is using the xdg-desktop-portal framework which grew out of the flatpak project. This is why permissions are stored in a file called ~/.local/share/flatpak/db/webextensions . Flatpak provides a way to edit this file, snap does not.

To my knowledge, it should be enough to install flatpak just for changing the permissions, then uninstall again. So you don't need to keep flatpak around if it's bothering you.

That being said, I have seen systems where the coapp "just works" without the permissions file being present. It's all rather mysterious to me, and I couldn't find any documentation.

cyfex commented 1 year ago

Thank you, that's very helpful. Appreciate the knowledge.

On Fri, 5 May 2023 at 01:53, el-calavera @.***> wrote:

@cyfex https://github.com/cyfex Just to clarify: this is working for the firefox snap.

If I understood correctly, this problem has nothing to do with snap interfaces. Rather, the interfaces required are already connected, though I don't know which ones are used. I suspect gnome or gtk.

Native messenging in snap is using the xdg-desktop-portal framework which grew out of the flatpak project. This is why permissions are stored in a file called ~/.local/share/flatpak/db/webextensions . Flatpak provides a way to edit this file, snap does not.

To my knowledge, it should be enough to install flatpak just for changing the permissions, then uninstall again. So you don't need to keep flatpak around if it's bothering you.

That being said, I have seen systems where the coapp "just works" without the permissions file being present. It's all rather mysterious to me, and I couldn't find any documentation.

— Reply to this email directly, view it on GitHub https://github.com/mi-g/vdhcoapp/issues/139#issuecomment-1535179270, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALTA5SGS7XEQL4T3B4OH43XEPUKHANCNFSM6AAAAAAQQKWDQM . You are receiving this because you were mentioned.Message ID: @.***>

VojtechSlavnik commented 1 year ago

The deb file did not work for installing companion app - and I am getting this message which is also disabling my use of the command line to install other programs: The package net.downloadhelper.coapp needs to be reinstalled, but I can't find an archive for it.

I was able to install the tar file and got this message: VdhCoApp: VdhCoApp is ready to be used

HOW DO I GET THE REINSTALL MESSAGE TO DISAPPEAR AND ALLOW ME TO USE THE COMMAND LINE AGAIN? I am using Ubuntu 22.04

paulrouget commented 1 year ago

Is this still a problem with the latest version of Firefox? It's supposed to have been fixed.

paulrouget commented 1 year ago

Closing in favor of https://github.com/aclap-dev/vdhcoapp/issues/159

somenewaccountthen commented 1 year ago

I suggest removing the part in the FAQ where it says how easy it is to install the companion app.