Bug 503105

Summary: Enable Share > "Send via Email" menu item to use any default mail application
Product: [Frameworks and Libraries] frameworks-kio Reporter: Gregorplanet <gregorplanet>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: john.kizer, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 6.13.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gregorplanet 2025-04-21 13:03:46 UTC
SUMMARY
The Share->"Send as mail..." button in Dolphin doesn't work with Thunderbird, manually installed from its website

STEPS TO REPRODUCE
1. Download Thunderbird .tar.gz from website and unpack to local folder
2. make it the default mail application
3. try to share a file via mail

OBSERVED RESULT
mailto-links from any application open with Thunderbird out of the box, only any kde share to mail buttons do nothing

EXPECTED RESULT
opening thunderbird with the file appended

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.13.11-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 John Kizer 2025-04-22 19:23:16 UTC
Hi - does the Exec= path in the .desktop file that you're using for Thunderbird have the %u at the end?
Comment 2 Gregorplanet 2025-04-22 21:00:29 UTC
(In reply to John Kizer from comment #1)
> Hi - does the Exec= path in the .desktop file that you're using for
> Thunderbird have the %u at the end?

yes it has. why would this be necessary?
Comment 3 John Kizer 2025-04-23 03:56:13 UTC
Just a hunch based on some other cases where mailto: links hadn't been able to launch the default mail program - the %u after the executable name is how arguments get passed to the executable ( https://askubuntu.com/questions/30210/what-does-u-mean-when-calling-a-command )

Does the same behavior occur if you try the Flatpak version of Thunderbird? Trying to see if it's something about how Thunderbird in general and the KDE components on your device are interacting, or if it's truly related to the installation method (I'm using the distribution-packaged version of Thunderbird on my Fedora KDE 42 device, and can't reproduce).

Thanks!
Comment 4 Gregorplanet 2025-04-25 12:58:16 UTC
(In reply to John Kizer from comment #3)
> Just a hunch based on some other cases where mailto: links hadn't been able
> to launch the default mail program - the %u after the executable name is how
> arguments get passed to the executable (
> https://askubuntu.com/questions/30210/what-does-u-mean-when-calling-a-
> command )
> 
> Does the same behavior occur if you try the Flatpak version of Thunderbird?
> Trying to see if it's something about how Thunderbird in general and the KDE
> components on your device are interacting, or if it's truly related to the
> installation method (I'm using the distribution-packaged version of
> Thunderbird on my Fedora KDE 42 device, and can't reproduce).
> 
> Thanks!

mailto-links or "send with mail" buttons from other apps like firefox or libreoffice work perfectly with my installation of thunderbird and there is no difference in appending the %u. flatpak version doesn't work with the kde sharing feature too
Comment 5 John Kizer 2025-04-25 18:22:43 UTC
Thanks - actually, has this ever worked with Thunderbird for you? I think we might be talking about a menu item that's specifically added by KMail, based on https://bugs.kde.org/show_bug.cgi?id=385503#c1
Comment 6 Gregorplanet 2025-04-26 18:28:29 UTC
hmm okay that makes indeed sense, i will then rename this issue to a feature request, that the user selected mail app should get respected not just kmail
Comment 7 John Kizer 2025-04-26 20:37:53 UTC
Thanks, adjusting the severity field to note as a feature request.