I’ve installed Mailspring on my Kubuntu 20.10 system and finding it a really nice client. However, I’ve encountered one problem.
If I set Mailspring as the default mail client on the system (via KDE System Settings), I get an error when clicking links in my browser (Brave): Unable to create io-slave. klauncher said: Unknown protocol 'mailto'.and Mailspring doesn’t pick up the click to compose an email.
If I revert the default mail client to KMail (make change in System Settings and hit Apply) then I can use mailto links as expected.
If I reset to Mailspring (again, in System Settings and hit Apply), I get the same error.
If I use xdg-open 'mailto:foo@example.com' at the terminal then I get the same error (but not in a popup dialog, obviously).
Does anyone know what’s wrong here?
When I have KMail set as the default client, I have the following lines in my ~/.config/mimeapps.list:
Odd. I usually use the Brave browser, and get the reported error above (after it asks permission to use xdg-open). I just tried with Firefox and it just fails silently: Mailspring becomes the focused application, but no email is created.
Could you share what you’re using in KDE Settings > Default applications to launch mailspring?
I’ve managed to fix this after much reading and various fiddlings about. I’m not sure what the problem was but I think what fixed it was to edit the file ~/.local/share/applications/mailspring.desktop so that the first two lines read:
I’m running KDE plasma on Arch (currently Plasma 5.24.5/Frameworks 5.94.0) and those edits don’t seem to be needed now. The x-scheme-handler/mailto seems to be enough for plasma to recognize it now, and the desktop file in the .deb has the %U already.