Description: Bug originally reported here: https://launchpad.net/bugs/1748895 Steps to Reproduce: 1. With apparmor profiles loaded, try sending the current doc by e-mail from the file menu Actual Results: An error message box saying: "LibreOffice is unable to find a working email configuration. Please save your document locally and attached from within your eMAIL client." Expected Results: The preferred e-mail client is opened and starts composing an e-mail with the current document attached Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.140 Chrome/64.0.3282.140 Safari/537.36
The apparmor profile for senddoc is broken in several ways: - the path to the installed executable is incorrect - it's missing an exception for xdg-email, which is used to create a new e-mail - it's missing an include statement for <abstractions/ubuntu-helpers>, which provides the sanitized_helper profile
Fix proposed for review: https://gerrit.libreoffice.org/#/c/49614/
Olivier Tilloy committed a patch related to this issue. It has been pushed to "libreoffice-6-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=60119a71e0f712f461b290abb009c7d8e62603b2&h=libreoffice-6-0 tdf#115659 Apparmor profile fixes for senddoc It will be available in 6.0.2. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
> An error message box saying: "LibreOffice is unable to find a working email configuration. Please save your document locally and attached from within your eMAIL client." Interesting I get that also with apparmor only in complain mode...
Olivier Tilloy committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=92dbf3f70eafd4974290fc488f51c05093950dbf tdf#115659 Apparmor profile fixes for senddoc It will be available in 6.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 115711 has been marked as a duplicate of this bug. ***
Moving to ASSIGNED
So there are 2 target dates - I hope that "Send" will become functional again in 6.0.2. Sending documents is pretty fundamental, and new users especially will be discouraged that it doesn't work.
*** Bug 115727 has been marked as a duplicate of this bug. ***
*** Bug 115646 has been marked as a duplicate of this bug. ***
Build-ID: 1:6.0.2~rc1-0ubuntu0.16.04.1~lo1 "Send document as e-mail" "Send PDF as email" does not work as advertised for version 6.0.2, nothing happens, no error message (that's new...). Extras/Options/Internet/E-Mail is set to /usr/bin/thunderbird. Okay, it is rc1 yet...
Ralph: try unsetting the Extras/Options/Internet/E-Mail preference. Libreoffice will default to xdg-email, which is allowed and will do the right thing if thunderbird is configured as your default e-mail client.
Olivier, this works! Why not with /usr/bin/thunderbird? Respectively, what for is this configuration? Is this documented somewhere? Thank you :-).
(In reply to Ralph Stahl from comment #13) > Olivier, this works! Why not with /usr/bin/thunderbird? Respectively, what > for is this configuration? Is this documented somewhere? I'm not sure whether this is documented. I suppose it's for overriding the the system default, or for systems that don't have xdg-email. The apparmor profile cannot add entries for every possible e-mail client out there.
Sadly, unsetting tools/options/internet/email does not work for me, not even when quitting LO and then re-starting before trying to Send. Trying to Send now leaves me in limbo, somewhere between LO and my email client (Claws), with neither having focus, so alt-tab gets me nowhere until I manually reassert focus on one or the other. Build ID: 1:6.0.2~rc1-0ubuntu0.16.04.1~lo1 on Ubunto 16.04.4 LTS Help (on tools/options/internet/email) is not at all helpful, and Browse isn't either - on my system it includes claws-mail. If I select xdg-email, then I get the same result s for Claws. xdg-email --attach <FILE> works fine for me from the command line. If AppArmor has to be enforced, then suitable documentation should be provided for new users. It seems that security is now a step ahead of usability?
Bernard, I can observe the issue you describe if I set claws as my default e-mail client. It's not an apparmor related issue though, as it still happens after unloading all the libreoffice apparmor profiles. Would you mind filing a new bug to track that issue separately? Thanks!
Done that, Olivier - Bug 116211. I originally reported this on a separate report, which then got linked to this apparmor one ...
A polite ping to Olivier Tilloy: Is this bug fixed? if so, could you please close it as RESOLVED FIXED ? Otherwise, Could you please explain what's missing? Thanks
This is fixed indeed.
I am experiencing a similar problem with Libreoffice 6.2.2 running on KDE-Neon. Tools/Options/InternetE-Mail is blank. Selecting File/Send/Email_Document, the Thunderbird (default email client) compose screen is evoked but the document which was supposed to be attached is not.
I am experiencing a similar problem with Libreoffice 6.4.2.2 running on Ubuntu 18.04 LTS snap version and ppa version In snap version : 1-Tools/Options/InternetE-Mail is "/home/myuser/Applications/thunderbird/thunderbird %u" Selecting File/Send/Email_Document, the Thunderbird (default email client) compose screen is evoked but the document which was supposed to be attached is not. 2-Tools/Options/InternetE-Mail is "/home/myuser/Applications/thunderbird/thunderbird" Selecting File/Send/Email_Document, the Thunderbird (default email client) compose screen is not evoked. I'm test also this macro : sub calculatror r=shell(ConvertToURL("file:///usr/bin/gnome-calculator"),2) print r r=shell("/usr/bin/gnome-calculator",2) print r end sub I'm get "file not found" ??? In ppa version all is right !
*** This bug has been marked as a duplicate of bug 130982 ***
(In reply to BarryHavenga from comment #20) > I am experiencing a similar problem with Libreoffice 6.2.2 running on > KDE-Neon. > > Tools/Options/InternetE-Mail is blank. > > Selecting File/Send/Email_Document, the Thunderbird (default email client) > compose screen is evoked but the document which was supposed to be attached > is not. Please open a new report for this and please use 6.4.x to test it. Everyone: don't be naughty and change the status...