Frederick888 / external-editor-revived

External Editor Revived is a Thunderbird MailExtension which allows editing emails in programs such as Vim, Neovim, Emacs, etc.
GNU General Public License v3.0
113 stars 6 forks source link

Thunderbird can't find the native messaging application #152

Closed shankargopal closed 7 months ago

shankargopal commented 7 months ago

Description

First, thank you for this wonderful extension!

I cannot get Thunderbird to see the native messaging app. I have downloaded it from Releases and saved it as /home/user/Software/external-editor-revived and made it executable. I have also run it and it runs normally. This is the contents of ~/.mozilla/native-messaging-hosts/external_editor_revived.json:

{
  "name": "external_editor_revived",
  "description": "Edit emails in external editors such as Vim, Neovim, Emacs, etc.",
  "path": "/home/user/Software/external-editor-revived",
  "type": "stdio",
  "allowed_extensions": [
    "external-editor-revived@tsundere.moe"
  ]
}

However, whenever I start Thunderbird, I get a popup saying No such native application external_editor_revived. Please try restarting Thunderbird.

What am I doing wrong?

Environment

Configuration

Editor: shell script called vimper-editor (uses Emacs internally)

But I assume the rest of this is irrelevant?

Logs

ExtEditorR sending:  
ExtensionError: No such native application external_editor_revived
shankargopal commented 7 months ago

I am adding this comment and closing this bug just for reference in case someone else has the problem.

The problem is that I forgot that I'm using Thunderbird with Firejail, and hence of course it can't find the application. Still trying to figure out what Firejail config will make External Editor Revived work, and will post that here if I figure it out.