[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Desktop sendmail question


On Mon, 11 Nov 2024 at 15:13, Gianluigi <gradobag@xxxxxxxxxxx> wrote:

> Il 11/11/24 15:52, Bruce Steers ha scritto:
> > I think attachments does not work in Desktop.SendMail with the new
> > Desktop.Portal method.
> >
> > have you tried by setting Desktop.UsePortal = False before using
> SendMail ?
> >
> > Respects
> > BruceS
>
> Hi Bruce,
>
> it works well, thanks
>
> Regards
> Gianluigi
>

You're welcome.

The problem is with DBus fd type (file descriptor) and using it with xdg
portal.
It's not very well documented how to correctly use DBus fd type with portal
and Benoit was unable to get it working.

if someone could figure it out we could have attachments with SendMail and
could probably get Portal.Inhibit() and some other things operational too.

I looked into it a while ago and came to suspect we have to use
org.freedesktop.portal.Documents interface along side
org.freedesktop.portal.Desktop to un-sandbox files and make the "Documents"
accessible to the "Desktop" interface.

https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Documents.html#org-freedesktop-portal-documents

It's all a bit beyond me though :(
Needs somebody with more spare time to figure it out and save the day.

Respects
BruceS

Follow-Ups:
Re: Desktop sendmail questionGianluigi <gradobag@xxxxxxxxxxx>
References:
Desktop sendmail questionGianluigi <gradobag@xxxxxxxxxxx>
Re: Desktop sendmail questionBruce Steers <bsteers4@xxxxxxxxx>
Re: Desktop sendmail questionGianluigi <gradobag@xxxxxxxxxxx>