aclap-dev / vdhcoapp

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

System wide install places firefox config in wrong folder #7

Closed hhyyrylainen closed 6 years ago

hhyyrylainen commented 6 years ago

On Fedora 26 (64 bit) I have to run this command after doing a system wide install (sudo /usr/local/net.downloadhelper.coapp-1.1.0/bin/net.downloadhelper.coapp-linux-64 install --system) to get firefox to detect the companion app:

sudo cp /usr/lib/mozilla/native-messaging-hosts/net.downloadhelper.coapp.json  /usr/lib64/mozilla/native-messaging-hosts/

The file net.downloadhelper.coapp.json doesn't get detected if it is in the folder that the install script puts it in (/usr/lib/mozilla/native-messaging-hosts/). Instead it needs to be in /usr/lib64/mozilla/native-messaging-hosts/.

Not sure if this is caused by other native apps that I already had in /usr/lib64/mozilla/native-messaging-hosts. But at least some time ago when making my own firefox addon I too had to place it in that folder for it to work.

mi-g commented 6 years ago

Thanks for the feedback. I'll make sure this is fixed in the next coapp release.

jamerlan commented 6 years ago

@hhyyrylainen Thanks! I was re-installing this app many times.. and it still said: app is not installed/not found. Your solution helped me! BTW, there was no folder: /usr/lib64/mozilla/native-messaging-hosts/ I created it, then cp.. and then it works! P.S. Fedora 27 P.P.S. "User installation" was not working also

mi-g commented 6 years ago

vdhcoapp 1.2.1 installs the manifest in /usr/lib64/mozilla/native-messaging-hosts if directory /usr/lib64 exists on the system.