-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension does not detect the connector on NixOS #509
Comments
Yeah, home manager might be the problem. I found this config that may work with HM, but I haven't tested it. If it doesn't work, maybe package maintainers of the NixOS package can help, as I don't have experience with Nix. |
I have also not been able to get past the Connector Installation, even before starting to use HomeManager. Tried the other config as well. |
this is not specific to nixos by the way. I'm using Arch Linux with firefox installed from the main repository and I also cant get past the Connector Installation page. |
Yeah, I had a look at that link. But what that's doing is installing the extension declarative. What I did is I just installed it through the traditional means. So it's not really applicable. (I think). Plus, I saw there's another comment on this thread that this is happening on arch as well. Which removes the home manager issue from the equation regardless. |
I'm having the same problem with Fedora 40, can't get past "Connector installation". I tried installing both from packagecloud and the .rpm package. |
Seems like this is a larger issue and appears not to be platform specific. 🤔 |
My issue on Arch was because I was running the Firefox application through Flatpak (so may be a different issue from the original issue posted here). There is no native host messaging set up for flatpaks currently which was why the PWA connector was not able to communicate. I swapped to Firefox through pacman through the Arch repo and it worked. Associated flatpak xdg-desktop-portal bug |
Yeah, if you are using Flatpak (or Snap), native messaging won't work. Otherwise, except possible problems with NixOS/HomeManager, it should work fine. |
I had this issue when installing on Mac using Homebrew. |
On macOS, you also need to link the manifest, as described in the sudo mkdir -p "/Library/Application Support/Mozilla/NativeMessagingHosts"
sudo ln -sf "$HOMEBREW_PREFIX/opt/firefoxpwa/share/firefoxpwa.json" "/Library/Application Support/Mozilla/NativeMessagingHosts/firefoxpwa.json" |
I don't use the flatpak btw |
I think I accidentally separated the last line of code before, it worked now. |
So, I think the only remaining issue here is when using NixOS. Problems with Flatpak and Snap are already known and don't need to be additionally reported, and if anyone still has problems on other systems, please create a new issue. Now, back to the NixOS issue. Maybe @camillemndn or @pasqui23 can help, as they are the maintainers of the package and probably know Nix better than me. |
Unfortunately I cannot replicate your problem |
Hi, I think currently |
maybe try add home.packages = [pkgs.firefoxpwa];
programs.firefox.nativeMessagingHosts=[pkgs.firefoxpwa]; |
does the extension have debug logs or something to trace what could be missing? I've managed to debug this through trial an error and basically it has to be installed exactly as described in the instruction manual and use nix system |
In Arch Linux, I was able to get the extension to work by copying the file from sudo cp /usr/lib/mozilla/native-messaging-hosts/firefoxpwa.json ~/.mozilla/native-messaging-hosts/ I did that based on the paths described here, but not sure why the globally-visible paths weren't working. |
Description
I am installing the extension for the first time on NixOS. I can complete the first two steps when following the wizard, but there is no obvious way to move on to the "Runtime Installation" step. I can see the binaries on my system, and I had no failures in my NixOS rebuild.
I use Home Manager to install/manage Firefox, but your Nix instructions use the regular module. So, I am wondering if that is the issue.
Extension Page
Binaries
Nix Config File
Steps to Reproduce
Environment
OS: NixOS 24.11.20240524.bfb7a88 (Vicuña) x86_64
Kernel: Linux 6.6.31
Shell: bash 5.2.26
DE: Gnome 46.1
WM: Mutter (Wayland)
Mozilla Firefox 126.0
Extension Version 2.12.1
firefoxpwa 2.12.0
Thank you!
The text was updated successfully, but these errors were encountered: