mozilla / node-fx-runner

Node API to control Firefox
Mozilla Public License 2.0
12 stars 21 forks source link

Does not work with flatpak #45

Open freaktechnik opened 4 years ago

freaktechnik commented 4 years ago

Ran into this with web-ext. I have the official Firefox flatpak installed, but it complains it can't find the firefox binary. As far as I understand, to run a flatpak you'd invoke flatpak run org.mozilla.firefox.

A quick search on npm doesn't show any packages that seem to know how to run flatpaks, but I'm not very familiar with how they work on an OS/shell level.

freaktechnik commented 4 years ago

Small correction: you can add /var/lib/flatpak/exports/bin and $XDG_DATA_HOME/flatpak/exports/bin resp. ~/.local/share/flatpak/exports/bin to your path to get executables that can be directly invoked (or you can search those directories for them if you were a package like this one). However, the bigger issue is that the flatpak binaries are named by RDN (like in the command example in the initial report).

Edit: using such a binary with web-ext run -f org.mozilla.firefox will lead to the profile error that the snap also suffers from, as far as I understand.