aclap-dev / vdhcoapp

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

Flatpack, Snap and Firefox #159

Closed paulrouget closed 10 months ago

paulrouget commented 1 year ago

I open this issue to gather all the filed issues that are related to flatpack and/snap + firefox.

Workarounds have been posted in all these issues. In recent version of Firefox those workarounds are not necessary anymore.

If you still have problem with Firefox, please let me know here.

Previous issues:

MadMartian commented 1 year ago

This is also an issue with the WaterFox fork, FlatPak and Snap are irrelevant in this case.

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

Version Information

Download Helper Companion App:

Package: net.downloadhelper.coapp
Status: install ok installed
Priority: optional
Section: base
Maintainer: Michel Gutierrez <coapp@downloadhelper.net>
Architecture: amd64
Version: 1.6.3
Depends: libsdl2-2.0-0 (>= 2.0.0)
Description: Video DownloadHelper companion app
homepage: https://github.com/mi-g/vdhcoapp
installedSize: 100000

Waterfox Version: WaterfoxLimited Waterfox G6.0.1

Diagnosis

strace -e trace=file reveals the following information upon clicking the Recheck button of the plugin:

[pid 941099] openat(AT_FDCWD, "/home/<redacted>/.waterfox/native-messaging-hosts/net.downloadhelper.coapp.json", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 941099] openat(AT_FDCWD, "/usr/lib/waterfox/native-messaging-hosts/net.downloadhelper.coapp.json", O_RDONLY) = -1 ENOENT (No such file or directory)

Work-Around

Creating a symbolic link ln -s /usr/lib/mozilla /usr/lib/waterfox solves the detection issue and video downloads are working again.

nanu-c commented 11 months ago

I had to run flatpak permission-set webextensions net.downloadhelper.coapp snap.firefox yes to get it working on a fresh install today.

paulrouget commented 11 months ago

I had to run flatpak permission-set webextensions net.downloadhelper.coapp snap.firefox yes to get it working on a fresh install today.

That's probably because of this: https://github.com/aclap-dev/vdhcoapp/blob/master/README.md#ubuntu-firefox-missed-prompt

paulrouget commented 10 months ago

I recommend people to read our document describing most of the coapp issues on Linux: https://github.com/aclap-dev/video-downloadhelper/wiki/CoApp-not-recognized

Closing.