Bug 160026 - MacOS: File -> Send -> Email Document ... does not work with Thunderbird if Thunderbird.app is selected under Preferences - Internet - Email as "Email program" via "Browse:"
Summary: MacOS: File -> Send -> Email Document ... does not work with Thunderbird if T...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.5.6.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-04 12:14 UTC by Rainer Kleinrensing
Modified: 2024-03-05 16:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Kleinrensing 2024-03-04 12:14:56 UTC
Description:
MacOS: The current document can be attached to an email via File - Send - Email Document.
To do this, an email app has to be selected under Preferences - Internet - Email,
which can be achieved by browsing the "/Applications" folder and selecting e.g. Thunderbird or by typing the app's name into the text field. When browsing for an app, e.g. Thunderbird, the selection will be "/Applications/Thunderbird.app". Since there are case distinctions with the LibreOffice source code on which apps to react on, the action fails when the app is "Thunderbird.app" since the case discinction only reacts on "thunderbird". A workaround is to type "/Applications/Thunderbird.app/Contents/MacOS/thunderbird" into the text field.


Steps to Reproduce:
1. configure Thunderbird as Email app via "Browse"
2. create a new document and select file - send - email document
3.

Actual Results:
The main Thunderbird window opens (i.e. not the compose window).

Expected Results:
an email compose Window should open with the current document attached.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
The case distinction should be expanded to include "Thunderbird.app"
Comment 1 Mike Kaganski 2024-03-04 12:57:33 UTC
https://opengrok.libreoffice.org/xref/core/shell/source/unix/misc/senddoc.sh?r=a1c854ff#344 seems to also treat *.app as Thunderbird ... but it is just a code reading, have no macOS myself.
Comment 2 steve 2024-03-05 11:42:52 UTC
"1. configure Thunderbird as Email app via "Browse"" Not sure what that means.


1. I opened Thunderbird > Settings > General > System Integration > Check Now and ticket the Email checkbox to make Thunderbird the default email client.
2. create a new document and select file - send - email document

For me this still opens Mail app, which differs from reported behavior, but is even more unexpected. Setting to new.

Testing on macOS 13.6.4, Mail 16.0 (3731.700.6.1.1), Thunderbird 115.8.0

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e2473fe3a547e5a11d3b91ab8ded833bf5b74356
CPU threads: 8; OS: macOS 13.6.4; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 steve 2024-03-05 11:46:45 UTC
@Rainer: which macOS version are you running? Are there pending updates from Apple?

You reported this issue against 7.5.6.2. Could you check how 24.2.1 behaves:
https://www.libreoffice.org/download/download-libreoffice/
Comment 4 Rainer Kleinrensing 2024-03-05 12:07:25 UTC
(In reply to steve from comment #2)
> "1. configure Thunderbird as Email app via "Browse"" Not sure what that
> means.

This means the procedure of configuring Thunderbird as the email app to use from within Libreoffice. As I wrote, there is a difference between browsing for the app to use and typing in the name.

> 1. I opened Thunderbird > Settings > General > System Integration > Check
> Now and ticket the Email checkbox to make Thunderbird the default email
> client.

"default email client" in your setting means the MacOS default, I tried setting the default for LibrOffice to use.

> 2. create a new document and select file - send - email document
> 
> For me this still opens Mail app, which differs from reported behavior, but
> is even more unexpected. Setting to new.
> 
> Testing on macOS 13.6.4, Mail 16.0 (3731.700.6.1.1), Thunderbird 115.8.0
> 
> Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
> Build ID: e2473fe3a547e5a11d3b91ab8ded833bf5b74356
> CPU threads: 8; OS: macOS 13.6.4; UI render: Skia/Metal; VCL: osx
> Locale: en-US (en_US.UTF-8); UI: en-US
> Calc: threaded
Comment 5 Rainer Kleinrensing 2024-03-05 12:08:19 UTC
(In reply to steve from comment #3)
> @Rainer: which macOS version are you running? Are there pending updates from
> Apple?
> 
> You reported this issue against 7.5.6.2. Could you check how 24.2.1 behaves:
> https://www.libreoffice.org/download/download-libreoffice/

I tested a Mac mini and a Macbook Pro, both on 14.3.1 (current version as of today). Also, I downloaded 24.2.1 and found the behaviour to be the same.

Best regards, Rainer
Comment 6 steve 2024-03-05 16:11:06 UTC
Oh amazing, LibreOffice is not just using the default macOS system email client (it should) but in Settings > Internet > Email > Email program allows to set the email client to be used.

I set that to Thunderbird and confirm your report. Thunderbird opens but no new email is generated.

This works fine when removing Thunderbird from that setting: LibreOffice will open a new draft with the file in question in Mail app.