How to make evince "Send To..." work with Thunderbird in Xubuntu LTS?

Hitting File > Send To ... evince is looking for a nautilus-sendto executable. If not available the 'send to' command fails.

If you don't have or want or can install nautilus-sendto you can setup an alternative script to send documents to Thunderbird. Run this command:

sudo nano /opt/evince-send-to-thunderbird

In the nano text editor that appears in your terminal, add this text:

#!/bin/bash
thunderbird -compose "attachment='$1'"

Save the file and quit nano. (If you press Ctrl+X you will have the opportunity to do both.) Then run these commands:

sudo chmod 775 /opt/evince-send-to-thunderbird
sudo ln -s /opt/evince-send-to-thunderbird /usr/bin/nautilus-sendto

After a restart of evince, the fake nautilus-sendto script is found on the path and the 'send-to' command opens a Thunderbird Compose window with the current document as an attachment.