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

Bug#996016: libreoffice: fails to send email



found 996016 1:7.0.4-4

retitlle 996016 ibreoffice: fails to send email with Thunderbird set as
mailer in KDE

tag 996016 + moreinfo

tag 996016 + unreproducible

thanks


Hi,


Am 10.10.21 um 11:30 schrieb Alex:
> Package: libreoffice
> Severity: normal
>
> Dear Maintainer,
>
> When I created a document in libreoffice and when I would send it as
> mail attachment, Libreoffice simply doesn't open my mailprogram
> defined in KDE.
> When I start libreoffice in a shell, I got error messages when sending
> the document as mail. In fact, I defined Thunderbird as my mail
> program in KDE->Settings.
And what is in LO settings?

> As you can see, I got a permission denied on /usr/bin/thunderbird. I
checked the permissions and those seemed to be ok, and when I start
thunderbird directly in the shell, it will start.

> So I disabled apparmor. I completely uninstalled it and after a
> reboot, the sending by mail attachment works as expected.
>
> This is only an ugly workaround to get it work again, so help please.
>
What if you set your mailer as xdg-email? That one is explicitely allowed:


profile libreoffice-senddoc /usr/lib/libreoffice/program/senddoc {
  #include <abstractions/base>

  #include <abstractions/user-tmp>

  /{usr/,}bin/sh        rmix,
  /{usr/,}bin/bash      rmix,
  /{usr/,}bin/dash      rmix,
  /{usr/,}bin/sed       rmix,
  /usr/bin/dirname      rmix,
  /usr/bin/basename     rmix,
  /{usr/,}bin/grep      rmix,
  /{usr/,}bin/uname     rmix,
  /usr/bin/xdg-open     rPUx,
  /usr/bin/xdg-email    rPUx,
  /dev/null             rw,
  /usr/lib/libreoffice/program/uri-encode rmpux,
  /usr/share/libreoffice/share/config/* r,
  owner
@{HOME}/.config/libreoffice{,dev}/?/user/uno_packages/cache/log.txt rw,
}


xdg-email will send with your preferred e-mail programm (see man xdg-email).


I just tried it: LOs default has sensible-lomua set. That one opened
Thunderbird in my  GNOME and happily set mail.

case `basename "$MAILER"` in
    sensible-lomua)
        if [ -x /usr/bin/xdg-email ] ; then
            MAILER=/usr/bin/xdg-email
        elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kde-open ] \
           || [ -x /usr/bin/gnome-open ] \
           || [ -x /usr/bin/xdg-open ]; then
            # use an undefined mailer, to trigger the default handling
            MAILER=undefined
        elif [ -n "$GNOME_DESKTOP_SESSION_ID" -a -x /usr/bin/evolution
]; then
            MAILER=/usr/bin/evolution
        elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kmail ]; then
            MAILER=/usr/bin/kmail
        elif [ -x /usr/bin/evolution ]; then
            # default
            MAILER=/usr/bin/evolution
        elif [ -x /usr/bin/icedove ]; then
            # fallback
            MAILER=/usr/bin/icedove
        elif [ -x /usr/bin/thunderbird ]; then
            # fallback
            MAILER=/usr/bin/thunderbird
        fi
        ;;
esac


... using xdg-email.

Regards,


Rene


Reply to: