When sharing a document via email without having Konsole installed, the sharing screen just disappears without any information. STEPS TO REPRODUCE 1. install skanpage 2. do not install konsole 3. scan something 4. Share > Email OBSERVED RESULT 5. The Share-Screen goes away, the mail client has not been opened. EXPECTED RESULT 5. something like `xdg-open mailto:?attach=/tmp/document.pdf` is executed which in turn opens the mail client SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.19.13/not applicable (available in About System) KDE Plasma Version: not applicable KDE Frameworks Version: not applicable (I think, otherwise: what package?) Qt Version: 5.15.6
What is the output of running "xdg-mime query default x-scheme-handler/mailto"?
aerc.desktop
(In reply to Moritz Poldrack from comment #2) > aerc.desktop Which is a TUI MUA running in a persistent terminal, which is sent the mailto: link to act upon it.
That's the important point, it's a terminal application (i.e. it has Terminal=true in its desktop file). That means it will be opened in the default terminal application (as defined in Plasma's system settings). If none is set then Konsole is used.
The config file for this is Plasma-specific, so if you are not using Plasma chances are it isn't set to anything and that's why it tries to use Konsole. As of right now there isn't really a cross-desktop way to specify a default terminal. https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/46 aims to fix that
> there isn't really a cross-desktop way to specify a default terminal I don't know about the internals of Skanpage, but wouldn't it be preferable to let xdg-open (or whatever backend it's using) decide on what to do with it?
The code to do this lives in Purpose, which calls KIO::KEmailClientLauncherJob; moving there.