Bug 510296

Summary: KEMailClientLauncherJob doesn't handle Thunderbird on Windows
Product: [Frameworks and Libraries] frameworks-kio Reporter: Anti <madarasz.antal>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, kde, kdelibs-bugs-null, nicolas.fella
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Anti 2025-10-06 11:49:47 UTC
When trying to send a document by email using File → Share → Send by Email, Okular opens the default email client as expected, but the document is not attached to the new email message. The email window opens empty or only with the subject filled in, but no attachment is included.

Steps to reproduce:

Open any PDF file in Okular.

Go to File → Share → Send by Email.

Wait for the default email client (e.g. Thunderbird, Evolution, etc.) to open.

Expected result:
The currently opened PDF file should be automatically attached to the new email message.

Actual result:
The email client opens, but the PDF file is not attached.

Mail client:
Thunderbird 140.3.1esr
Comment 1 Sune Vuorela 2025-10-06 12:01:00 UTC
Thunderbird is having special code for this

https://invent.kde.org/frameworks/kio/-/blob/master/src/gui/kemailclientlauncherjob.cpp#L157

I will reassign this to KIO where this function originates. This works with other email clients.
Comment 2 Sune Vuorela 2025-10-06 12:03:04 UTC
(In reply to Sune Vuorela from comment #1)
> Thunderbird is having special code for this
> 
> https://invent.kde.org/frameworks/kio/-/blob/master/src/gui/
> kemailclientlauncherjob.cpp#L157
> 
> I will reassign this to KIO where this function originates. This works with
> other email clients.

Oh. This was changed to a windows bug. Thunderbird is not specialcased on windows. I guess we need a windows developer with thunderbird interests to fix this.