Using Thunderbird as default client on Ubuntu

For my sins, I installed Evolution in the past. I don’t use it; I use Thunderbird. But clicking a mailto link in Firefox starts up Evo. Big no-no. So, I had a poke around. In Computer | Desktop Preferences | Preferred Applications you can choose Mail Reader to configure your default mail reader. TB doesn’t seem to show up in the dropdown, so I thought I’d bang it into Custom Mail Reader. So, what do you put in? I’d have thought mozilla-thunderbird %s. Nope. That doesn’t work. Moreover, if you try that from the command-line:

mozilla-thunderbird [email protected]
/usr/lib/mozilla-thunderbird/mozilla-thunderbird-xremote-client: Error: Failed to send command: 509 internal error

That’s no good. On the other hand, what’s a mozilla-thunderbird-xremote-client?

/usr/lib/mozilla-thunderbird/mozilla-thunderbird-xremote-client [email protected]
/usr/lib/mozilla-thunderbird/mozilla-thunderbird-xremote-client: Error: Failed to send command: 500 command not parsable: [email protected]

Ah, “command not parsable“. It must take the -remote commands.

/usr/lib/mozilla-thunderbird/mozilla-thunderbird-xremote-client "mailto([email protected])"

That works! Yay! So, let’s try that in the Custom Mail Reader box in Preferred Applications. Nope. Dammit. It pops up a mail window, no problem…with “%s” in the To box. Dammit. Any suggestions?

I'm currently available for hire, to help you plan, architect, and build new systems, and for technical writing and articles. You can take a look at some projects I've worked on and some of my writing. If you'd like to talk about your upcoming project, do get in touch.

More in the discussion (powered by webmentions)

  • (no mentions, yet.)