The error you're seeing:
Content snap command-chain for /snap/firefox/6495/gnome-platform/command-chain/desktop-launch not found: ensure slot is connected
...typically occurs when the Snap package for Firefox is not properly connected to the required content snaps like the GNOME platform, which provide shared libraries and runtime components for graphical and desktop applications.
Because you are running Firefox via X11 forwarding (ssh -X), and using the Snap version of Firefox, which requires special access to various Snap content interfaces, this broken connection can prevent it from launching.
✅ The Solution
You can manually connect the required content interface using:
sudo snap connect firefox:gnome-3-38-2004 gnome-3-38-2004
Note: Depending on your system and Snap version, you may need to substitute gnome-3-38-2004 with another platform snap that matches your Firefox snap version. Use snap connections firefox and see which plugs are not connected.
🔍 Step-by-Step Instructions
1. 🛠 Check which interfaces are disconnected
Run:
snap connections firefox
Look for lines at the end like:
Interface Plug Slot Notes
gnome-3-38-2004 firefox:gnome-3-38-2004 - -
If the Slot is missing and the Notes field doesn't say connected, you need to manually connect it.
2. 🔗 Connect missing content interfaces
As mentioned:
sudo snap connect firefox:gnome-3-38-2004 gnome-3-38-2004
You may also need to run:
sudo snap connect firefox:gtk-3-24-connection
sudo snap connect firefox:desktop
sudo snap connect firefox:desktop-legacy
3. 💻 Try running Firefox over SSH again:
ssh -X user@host
firefox
🛑 Additional Notes
- If you're not required to use the Snap version, consider installing the non-Snap Firefox version (such as the one from Mozilla directly or from a PPA) which is easier to run over ssh
-X, as Snap introduces isolations that make remote GUIs more difficult.
To install non-Snap Firefox on Ubuntu (for example):
sudo add-apt-repository ppa:mozillateam/ppa
sudo apt update
sudo apt install firefox
Then, prevent Snap from overriding it:
sudo snap remove firefox
sudo apt-mark hold firefox
Let me know your distro and Snap version if you're unsure which plugs need to be connected.