Ubuntu’s beleaguered Firefox Snap package is tackling another of longstanding criticism of it, namely its lack of native messaging support.
It’s this fancy-sounding feature that allows Firefox add-ons to “exchange messages with a native application, installed on the user’s computer”. This enables things like desktop password managers to function as expected in the browser.
But at last there’s change ahoy.
In a short update on the Snapcraft forum Ubuntu developer Olivier Tilloy says integration of a new WebExtensions XDG portal with the latest beta builds of Mozilla Firefox is ready for wider testing via the Snap store.
The patches mean Ubuntu users should be able, once again, to install GNOME Shell extensions from the GNOME Extensions website using Firefox (with the relevant browser add-on and host connector, though honestly: install
gnome-shell-extension-manager instead as it offers a superior experience all-round).
Similarly, other Firefox add-ons like the KeePassXC password manager should also work as intended. The new XDG portal also benefits Flatpak apps. It may also in time, be used by other popular web browsers shipped in sandbox packaging formats, such as Chromium.
Want to give it a go?
How to help test this stuff first-hand
In his post on the Snapcraft forum Canonical’s Olivier Tilloy encourages the community to “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” — something many of you will be keen t do.
To help kick the tyres on this early you need to do a few things to ‘opt-in’.
First: double-check that you have the latest version of the
xdg-desktop-portal package (v1.14.4-1ubuntu2~22.04.1 to be specific). This is rolling out to Ubuntu users as a software update but hasn’t reached everyone yet.
Quickest way to check you have it? Run
sudo apt install xdg-desktop-portal, which will print the version number in its “you already have this” error). If you’ve got the version mentions above, great; if not, you’ll need to wait for it.
Next, install the Firefox Snap from either the beta or edge channels — trivia: you can run multiple versions of the same snap, if you’d rather — on Ubuntu 22.04 LTS or later:
sudo snap refresh firefox --beta
Finally, reboot your computer (or kill the xdg-desktop-portal process and let it respawn automatically) before you start testing or things might not jive well until you’ve done so.
Once all is in place you will see a permission prompt appear on your screen the next time you launch Firefox:
Okay the prompt to proceed, and et voila: native messaging integration that should work — let me know how you get on down in the comments.