Bridge won’t connect on Snap/Flatpak Linux
In short: a sandboxed (Snap or Flatpak) Thunderbird can’t launch atbridge.ai’s
helper, so the add-on won’t connect. Run the helper as a background service
(atbridge bridge service install && atbridge bridge service start) and pair the
add-on over loopback with the token from atbridge bridge pair — or reinstall
Thunderbird from thunderbird.net.
On Linux, if atbridge.ai “worked then stopped”, the @bridge add-on can’t
connect, or activation fails with a vague error (and ~/.atbridge has no
license.json), the cause is almost always how Thunderbird was installed —
not your license.
Why this happens
Section titled “Why this happens”atbridge.ai talks to Thunderbird through a tiny local helper (a native-messaging host). Normally Thunderbird launches that helper itself. Snap and Flatpak run Thunderbird inside a security sandbox that forbids it from spawning an outside program — so the helper never starts and the add-on can’t connect. This bites Ubuntu users especially: the Ubuntu App Center installs Thunderbird as a Snap by default.
Good news: you don’t have to reinstall Thunderbird. A sandboxed Thunderbird
can still make local network connections, so atbridge.ai ships a loopback
fallback — you run the helper yourself as a small background service, and the
add-on connects to it over 127.0.0.1. Set it up once; it sticks.
Step 1 — Check how Thunderbird is installed
Section titled “Step 1 — Check how Thunderbird is installed”-
Run these in a terminal:
Terminal window snap list 2>/dev/null | grep -i thunderbirdflatpak list 2>/dev/null | grep -i thunderwhich thunderbird -
If Thunderbird appears under snap or flatpak, use the loopback fallback below. (A plain path like
/usr/bin/thunderbirdfrom your distro package or Mozilla’s tarball doesn’t need any of this.)
Step 2 — Run the bridge as a background service
Section titled “Step 2 — Run the bridge as a background service”This runs the helper standalone (a systemd --user service) so the sandboxed
Thunderbird can reach it over loopback instead of having to launch it.
-
Install and start the service:
Terminal window atbridge bridge service installatbridge bridge service start -
Check it’s up:
Terminal window atbridge bridge service statusYou want
active. (It also starts automatically when you log in.)
Step 3 — Pair the add-on with the service
Section titled “Step 3 — Pair the add-on with the service”Because the add-on can’t read files on your machine, you hand it a one-time token so only it can talk to the service (no random web page can).
-
Print the token:
Terminal window atbridge bridge pairCopy the
tokenvalue it shows. -
In Thunderbird, open atbridge.ai → Settings → Advanced → Local bridge (Snap/Flatpak). Paste the token, tick Enable loopback fallback, and click Save. (Leave the port at
45678unless you changed it.)
Verify
Section titled “Verify”atbridge bridge pingatbridge connect statusA reply from bridge ping means Thunderbird and atbridge.ai are talking over
loopback. Then activate your plan if you haven’t yet.
Where to go next
Section titled “Where to go next”Was this page helpful?
Thanks for the feedback!