persepolisdm / Persepolis-WebExtension

WebExtension integration for Persepolis download manager
http://persepolisdm.github.io
GNU General Public License v3.0
74 stars 9 forks source link

Persepolis Download Manager Integration does not have permission to use native application com.persepolis.pdmchromewrapper #17

Closed grahamperrin closed 5 years ago

grahamperrin commented 5 years ago

https://github.com/persepolisdm/persepolis/issues/575#issuecomment-433643887:

This extension does not have permission to use native application com.persepolis.pdmchromewrapper (or the application is not installed)

– NativeMessaging.jsm:216

Unchecked lastError value: Error: Attempt to postMessage on disconnected port

– ExtensionCommon.jsm:304

Environment

Note

https://github.com/persepolisdm/persepolis/issues/575 was closed with reference to https://redd.it/9s2qmh but that is not a fix.

JafarAkhondali commented 5 years ago

Hi, Looks like you are using WaterFox! Can you install FireFox (quantom) and check if problem exists? If yes, can you provide content of this file please? cat .mozilla/native-messaging-hosts/com.persepolis.pdmchromewrapper.json

JafarAkhondali commented 5 years ago

WaterFox might be not compatible with Firefox Quantom, Best approach would be migrating to FF Quantom. If you can't, try putting this in code: {"name": "com.persepolis.pdmchromewrapper", "type": "stdio", "path": "/home/black-hole/.config/persepolis_download_manager/persepolis_run_shell", "description": "Integrate Persepolis with firefox using WebExtensions", "allowed_extensions": ["com.persepolis.pdmchromewrapper@persepolisdm.github.io", "com.persepolis.pdmchromewrapper.offline@persepolisdm.github.io"]}

in this file: ~/.mozilla/native-messaging-hosts/com.persepolis.pdmchromewrapper.json

If that didn't help, There is nothing i can do

JafarAkhondali commented 4 years ago

Apparently Waterfox uses another path for NHM extensions ~/.waterfox/.. instead of ~/.mozilla. Current temporary fix is to copy ~/.mozilla/native-messaging-hosts/com.persepolis.pdmchromewrapper.json to ~/.waterfox/native-messaging-hosts/com.persepolis.pdmchromewrapper.json