You will need to switch firefox to the beta or edge channel. Alternatively, you can have the stable and beta versions installed and running in parallel.
Easy instructions:
sudo snap refresh firefox --beta
This was tested with the GNOME Shell integration extension as well as the KeePassXC Browser extension. Testing and feedback with these and other extensions that rely on native messaging to work are very welcome. Let us know which extensions you tested, how you installed the native host connector, and whether the functionality worked as expected, partially, or not at all. Thank you!
Do you have xdg-desktop-portal version 1.14.4-1ubuntu2~22.04.1 ?
It’s currently in jammy-updates, but phased at 40%.
If not, kill the xdg-desktop-portal process and let it respawn automatically, that should fix the problem.
I have just tested it with Plasma Integration and everything seems to be working so far. Download notifications pop-up as expected and sound/video are integrated in the taskbar.
So far everything seems to be working fine. I’ll keep on testing and if any issues arise I’ll report them here.
There’s one thing that still does not work in Firefox snap, but I’m not sure it is related to Native Messaging.
In my country government agencies use Physical Digital Tokens that can be used as personal IDs / digital certificates to log into some systems. These tokens worked just fine in the DEB version but they stopped working in the Snap version.
Is this related to native messaging? If not, let me know so I can open a new bug report to discuss this issue. This is a very important feature for governmental agencies where I live.
[Afaik all of the software here is current stable (except the FF beta ofc), only listing just in case.]
Glad to see progress on this one, thanks to all you devs!
KDE Connect 0.1.7 and Plasma Integration 1.8.1 extensions still not working for me after beta refresh in snap and system restart.
Firefox 104.0b2
KDE 5.24.4 (Frameworks 5.92.0, Qt 5.15.3, Kernel 5.15.0-41 gen(64))
all gdk-related settings in about:config set to 1
xdg-desktop-portal 1.14.4-1ubuntu2~22.04.1
xdg-desktop-portal-kde 5.24.4-0ubuntu1
KDE returns “no devices connected,” Plasma “failed to connect to the native host.”
Running snap run firefox is returning:
mary@penelope-kubuntu:~$ snap run firefox
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Gtk-Message: 23:21:12.582: Failed to load module "colorreload-gtk-module"
Gtk-Message: 23:21:12.582: Failed to load module "window-decorations-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
[Parent 12149, Main Thread] WARNING: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_119/firefox_com_0xc0dedbad_kdeconnect_chrome_3921261412”: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:167
** (firefox-beta:12149): WARNING **: 23:21:18.238: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_119/firefox_com_0xc0dedbad_kdeconnect_chrome_3921261412”
libva info: VA-API version 1.7.0
libva info: Trying to open /snap/firefox/1624/gnome-platform/usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_7
ATTENTION: default value of option mesa_glthread overridden by environment.
libva info: va_openDriver() returns 0
ATTENTION: default value of option mesa_glthread overridden by environment.
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
libva info: VA-API version 1.7.0
libva info: Trying to open /snap/firefox/1624/gnome-platform/usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_7
ATTENTION: default value of option mesa_glthread overridden by environment.
libva info: va_openDriver() returns 0
libva info: VA-API version 1.7.0
libva info: Trying to open /snap/firefox/1624/gnome-platform/usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_7
ATTENTION: default value of option mesa_glthread overridden by environment.
libva info: va_openDriver() returns 0
Again, thank you very much for working to get these kinks ironed out. Looking forward to being able to use these extensions without working around snap! Let me know if I can tell you anything else that might be useful.
It works for me for gnome-shell-integration, but not for keepassxc-browser. When I installed the Firefox Snap, it copied over my existing Firefox profile with working keepassxc integration, but when starting the snap it cannot connect to keepassxc. I deleted the connection in the keepassxc-browser settings, but now nothing happens when I click “Connect” there to add a new keepassxc connection.
Are there any logs somewhere that I can look at?
I started snap run firefox from the terminal, but it does not print any related messages.
Versions:
Firefox Snap 104.0b2-1
keepassxc 2.6.6 (Ubuntu apt package)
keepassxc-browser 1.8.1
xdg-desktop-portal 1.14.4-1ubuntu2~22.04.1 (I killed all processes after the upgrade.)
I installed the Firefox beta, but it’s not working with KeePassXC 2.7.1 & keepassxc-browser 1.8.1 either. I get a message of “Error! Not connected to KeePassXC”.
I’ve the same problem with the KeePassXC-Browser extension, it says that the key exchange failed. It never prompted for access, despite me copying the native messaging config file.
GNOME Shell worked OK after an “unexpected error” reported and a browser restart.