In Dolphin (KDE’s File Explorer) When I right click a file and choose send via mail (I have KDE set as default mail) a new mail dialog box opens but that file is not attached. This is very trivial and handy feature and should work. Please release a fix.
I can also confirm this on Ubuntu 20.04 and Nautilus.
Right-click a file in Nautilus.
Click Send To..
A new Mailspring compose window appears without an attachment.
@Phylu I suspect this would be a trivial fix for you, since you were just in this part of the code, hey? I suspect that there’s some assumed normal command-line argument that we are doing differently, and it might be a good idea to add the “standard” way as well?
If I understand the nautlius-sendto code correctly, it will try to run mailspring --attach=/path/to/filename.txt, wherease mailspring is expecting to be run as mailspring /path/to/filename.txt. Not sure, how the KDE implementation works (but probably similar).
I have an idea, how to tackle this and will have a look.