-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux: Investigate how to configure BB so it can send documents from LibreOffice or from a folder/deskop via "Sent To > Mail Recient" #85
Comments
I have done a quick test with the BB flatpak 102.3.1-bb18 under Gnome 42 on Fedora Silverblue 36. When I try to send a document from LO a BB compose window is opened with the subject set to the filename of the document. What seems to be missing is that the document is attached to the mail. For the TB flatpak the behavior is identical. When calling |
Partial success: |
Using Running an equivalent command for BB, like: Your attempts with |
Looks like there is a script that changes one format to another. We have it at |
Summarising: On an old Mint system with TB 78 the following all works:
What doesn't work is
That also doesn't work on Windows. |
Even if you get the |
Thanks for digging this out. Fixing LO is a one liner, no? |
I found that indeed the error I got was caused by lacking permissions in the sandbox that the flatpak app runs in. According to flathub/org.mozilla.Thunderbird#263 the preferred solution to that issue (using 'Portals' for file access) would have to be implemented upstream in the TB code. At the moment it seems to be partially implemented, leading to incosistent behavior that I documented in the readme for the BB flatpak. There is a work-around (giving BB access to /home), but applying that comes with the caveat that the user has to move its profile directory. So I am hesitant to generally apply that work-around for the published flatpak. All in all, for the "Send mail" integration between LO and BB to work for the flatpak version, quite a list of things have to happen:
|
We've only played with Mint/Xfce's "Preferred Programs" panel. That could be used to launch a BB compose window from a very old version of LO. We'll have to see what happens with Nr, 2 fixed even without Nr. 1. |
TDF people suggested to provide a patch for Nr. 1. @mfschumann could you patch their senddoc.sh script and test it once a fix for Nr. 2 is available? Off-topic: You are one of the reporters of bug 799040 (Issues with ignored threads), well, that was fixed in BB a while ago with TB still not having picked up the patch. |
|
Thanks, I will test your bugfix and try to patch LO's senddoc.sh locally. This may take some time because it seems that the script lands in the compiled binary, so I will need to set up the build first. |
OK, in version 102.3.2-bb19 this works again: I thought of patching senddoc.sh locally, but if they baked it into the binary, I give up. |
This is my understanding of the code paths involved: Your fix repairs the path where you end up in 5a, i.e., the user must manually set the mail client in LO. On the LO side this requires For the code path ending in 5c, i.e., when the user does not specify the mail client within LO settings, there will probably be no fix because support of attaching files via For the flatpak versions of LO and BB the issue is even more complex due to the application sandboxing getting in the way when trying to call one app from within the other app's sandbox and sharing files between apps. Making the integration between flatpak'ed LO and BB work very probably requires either some manual work-arounds on the user side or changes to the LO code. Plus the result will be brittle because flatpak lacks a stable API to realize stuff like this. So I am not very inclined to push this topic any further. |
Impressive investigation. However, the findings don't explain what I see in my old LO Writer 6.4.7.2 on Mint 20/Xfce, likely things have changed since then:
But never mind, I have a very old version of LO and I don't know what the default e-mail configuration or xdg-mail do. As far as LO is concerned, your patch in https://bugs.documentfoundation.org/show_bug.cgi?id=151314 looks good to me. |
@mfschumann I’ve merged your patch and will propose it for inclusion in the upcoming LO 7.4.3. Thanks! |
On newsgroup de.comm.software.mozilla.mailnews some discussion was started that TB 102.3.0 couldn't receive documents from LO to be sent to a mail recipient. However, various users have since reported that it does in fact work.
It doesn't appear to work for BB since there's some configuration missing. We're hoping to get some feedback from @Posi81 or @mfschumann as to what may be missing. Does it work in the Flatpak?
The text was updated successfully, but these errors were encountered: