There have been many different proposed solutions to this, but for Kubuntu 16.04 upwards and Debian 8 upwards I have found this method by far the easiest to implement:
First backup the KMail sendto service
Next edit thunderbird_addattachmentservicemenu.desktop as follows:
Locate the line containing Icon=kmail and change it to Icon=thunderbird
Remove the line containing Exec=kmail --attach %F
Add the following line (Copy and paste is best):
Exec=thunderbird -compose "attachment='$(A='';for file in %F;do A=$file,$A;done;echo "$A" | sed 's/.$//')'"
That's it all done, right click on file(s) and click on Send as Email Attachment.
First backup the KMail sendto service
Code:
sudo -s [FONT=monospace]cd /usr/share/kservices5/ServiceMenus/ [/FONT][FONT=monospace]cp kmail_addattachmentservicemenu.desktop kmail_addattachmentservicemenu.desktop_bak mv[/FONT][FONT=monospace] kmail_addattachmentservicemenu.desktop thunderbird[/FONT][FONT=monospace]_addattachmentservicemenu.desktop [/FONT]
Locate the line containing Icon=kmail and change it to Icon=thunderbird
Remove the line containing Exec=kmail --attach %F
Add the following line (Copy and paste is best):
Exec=thunderbird -compose "attachment='$(A='';for file in %F;do A=$file,$A;done;echo "$A" | sed 's/.$//')'"
That's it all done, right click on file(s) and click on Send as Email Attachment.
Comment