Libre Write Send / Document not attachment created in Thunderbird

We had situations in the past where LO worked with one mail client and did not work with Thunderbird.
The system programmer analyzed the system logs and found out that there was a problem with the AppArmor rules.

Good to know.

This feature (File>Send attachment) requires some kind of communication between different applications that are bundled by the maintainers of your desktop environment. It is their promise, to take care that the entire desktop environment is well integrated, despite the fact that applications come from different maintainers, namely The Document Foundation and Mozilla Foundation.
Personally, I would not bother at all about this minor convenience feature. I do save my documents, and I can attach any file types to emails using any application running on desktop or in a browser.
Nevertheless, it is a bug. I’d suspect that the failure is on the distributor’s side.

1 Like

How do you see the Apparmor rules? I had a look at the Apparmor website and couldn’t understand it?

Maybe this documentation will be useful.
If you have any specific questions, I’ll invite our Linux specialist and we’ll try to figure it out together.

Both LibreOffice senddoc and Thunderbird are in ā€œEnforcedā€ mode while Evolution is in ā€œUnconfinedā€ mode. Could this be why sending a doc to email works with Evolution but not with TBird?

Yes, it is quite possible.
Try disabling the AppArmor and see if that solves the problem.

Didn’t solve it, but now there’s an error message, which there wasn’t before!
ā€œThe file file:///tmp/lu61004a8p.tmp/lu61004ab1.tmp/Easter 5.odt does not exist so could not be attached to the message.ā€

Interesting!
And try sending a file whose name does not contain a space.

Exactly the same error.

Now we have checked that the Thunderbird program works normally with AppArmor disabled in the following configuration:

Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.7
Calc: threaded

Any progress?

I guess no, as the issue (the last part where you appended) was solved by install from ppa (or configuring AppArmor).
.
On a general question: Yes there is progress. Read release notes.
.
Recommendation: If you have a question, open a new topic and waste some more words to describe your problem.

1 Like

@Wanderer

Okay, I’ve never worked with AppArmor before; but there are some denied access(es) in the log files:

$ grep -i denied /var/log/kern.log

Sep  2 10:14:35  kernel: [  374.909646] audit: type=1400 audit(1756822475.616:31): apparmor="ALLOWED" operation="open" class="file" profile="libreoffice-soffice" name="/home/$USER/.cache/mesa_shader_cache_db/index" pid=10760 comm="soffice.bin" requested_mask="wrc" denied_mask="wrc" fsuid=1000 ouid=1000

Sep  2 10:14:36  kernel: [  375.762129] audit: type=1400 audit(1756822476.469:32): apparmor="ALLOWED" operation="open" class="file" profile="libreoffice-soffice" name="/home/$USER/.thunderbird/profiles.ini" pid=10759 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000

Here’s my aa-status:

apparmor module is loaded.
28 profiles are loaded.
26 profiles are in enforce mode.
   /usr/bin/evince
   /usr/bin/evince-previewer
   /usr/bin/evince-previewer//sanitized_helper
   /usr/bin/evince-thumbnailer
   /usr/bin/evince//sanitized_helper
   /usr/bin/evince//snap_browsers
   /usr/bin/freshclam
   /usr/bin/man
   /usr/lib/NetworkManager/nm-dhcp-client.action
   /usr/lib/NetworkManager/nm-dhcp-helper
   /usr/lib/connman/scripts/dhclient-script
   /usr/lib/cups/backend/cups-pdf
   /usr/sbin/chronyd
   /usr/sbin/cups-browsed
   /usr/sbin/cupsd
   /usr/sbin/cupsd//third_party
   /{,usr/}sbin/dhclient
   libreoffice-senddoc
   libreoffice-soffice//gpg
   libreoffice-xpdfimport
   lsb_release
   man_filter
   man_groff
   nvidia_modprobe
   nvidia_modprobe//kmod
   tcpdump
2 profiles are in complain mode.
   libreoffice-oosplash
   libreoffice-soffice
0 profiles are in kill mode.
0 profiles are in unconfined mode.
5 processes have profiles defined.
5 processes are in enforce mode.
   /usr/bin/freshclam (2796) 
   /usr/sbin/chronyd (1827) 
   /usr/sbin/chronyd (1830) 
   /usr/sbin/cups-browsed (187287) 
   /usr/sbin/cupsd (187258) 
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
0 processes are in mixed mode.
0 processes are in kill mode.

My understanding is that I should be able to edit the AppArmor profile and add an exception for either soffice (LO) or for TB. It doesn’t look as though there is an entry for Thunderbird, should there be? If so, how and where would I manually add it?

Uninstall Thunderbird Snap and reinstall via PPA.
Issue solved.

2 Likes